Role os_tacker for OpenStack-Ansible
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.yml 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ---
  2. # (C)2016 Brocade Communications Systems, Inc.
  3. # 130 Holger Way, San Jose, CA 95134.
  4. # All rights reserved.
  5. #
  6. # Licensed under the Apache License, Version 2.0 (the "License");
  7. # you may not use this file except in compliance with the License.
  8. # You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. - name: Restart tacker services
  18. service:
  19. name: "{{ item }}"
  20. enabled: yes
  21. state: restarted
  22. pattern: "{{ item }}"
  23. daemon_reload: "{{ (ansible_service_mgr == 'systemd') | ternary('yes', omit) }}"
  24. with_items: "{{ tacker_service_names }}"
  25. failed_when: false
  26. listen:
  27. - "venv changed"
  28. - name: Restart apache
  29. service:
  30. name: apache2
  31. state: restarted
  32. delegate_to: "{{ item }}"
  33. with_items:
  34. - "{{ groups['horizon_all'] }}"