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 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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: Gather variables for each operating system
  18. include_vars: "{{ item }}"
  19. with_first_found:
  20. - "{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml"
  21. - "{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml"
  22. - "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version | lower }}.yml"
  23. - "{{ ansible_distribution | lower }}.yml"
  24. - "{{ ansible_os_family | lower }}.yml"
  25. tags:
  26. - always
  27. - name: Check init system
  28. command: cat /proc/1/comm
  29. register: _pid1_name
  30. changed_when: False
  31. tags:
  32. - always
  33. - name: Set the name of pid1
  34. set_fact:
  35. pid1_name: "{{ _pid1_name.stdout }}"
  36. tags:
  37. - always
  38. - include_tasks: tacker_pre_install.yml
  39. tags:
  40. - tacker-install
  41. - include_tasks: tacker_install.yml
  42. tags:
  43. - tacker-install
  44. - include_tasks: tacker_install.yml
  45. tags:
  46. - tacker-install
  47. - include_tasks: tacker_post_install.yml
  48. tags:
  49. - tacker-install
  50. - tacker-config
  51. - include_tasks: tacker_init.yml
  52. tags:
  53. - tacker-install
  54. - import_tasks: mq_setup.yml
  55. when:
  56. - inventory_hostname == groups['tacker_all'][0]
  57. vars:
  58. _oslomsg_rpc_setup_host: "{{ tacker_oslomsg_rpc_setup_host }}"
  59. _oslomsg_rpc_userid: "{{ tacker_oslomsg_rpc_userid }}"
  60. _oslomsg_rpc_password: "{{ tacker_oslomsg_rpc_password }}"
  61. _oslomsg_rpc_vhost: "{{ tacker_oslomsg_rpc_vhost }}"
  62. _oslomsg_rpc_transport: "{{ tacker_oslomsg_rpc_transport }}"
  63. _oslomsg_notify_setup_host: "{{ tacker_oslomsg_notify_setup_host }}"
  64. _oslomsg_notify_userid: "{{ tacker_oslomsg_notify_userid }}"
  65. _oslomsg_notify_password: "{{ tacker_oslomsg_notify_password }}"
  66. _oslomsg_notify_vhost: "{{ tacker_oslomsg_notify_vhost }}"
  67. _oslomsg_notify_transport: "{{ tacker_oslomsg_notify_transport }}"
  68. tags:
  69. - common-mq
  70. - tacker-config
  71. - include: tacker_db_setup.yml
  72. when:
  73. - inventory_hostname == groups['tacker_all'][0]
  74. tags:
  75. - tacker-install
  76. - include: tacker_service_setup.yml
  77. when:
  78. - inventory_hostname == groups['tacker_all'][0]
  79. tags:
  80. - tacker-install
  81. #NOTE: comment for now
  82. #- include_tasks: tacker_horizon.yml
  83. #when: >
  84. #inventory_hostname == groups['tacker_all'][0]
  85. #tags:
  86. #- tacker-install
  87. #- tacker-horizon
  88. - name: Flush handlers
  89. meta: flush_handlers