|
11 | 11 | - debug: |
12 | 12 | msg: "cloudstack not cloud is {{ path_is_cloudstack.stat.exists }} and the OS version is {{ ansible_distribution_major_version }}" |
13 | 13 |
|
14 | | -- name: Setup CloudStack Manager (centos/rhel6) |
| 14 | +- name: Setup CloudStack Manager (centos/rhel8+/suse/ubuntu/debian or centos/rhel7 ACS < 4.6) |
15 | 15 | shell: sleep {{ play_hosts.index(inventory_hostname) | int * 15 }} && /usr/bin/cloudstack-setup-management |
16 | | - when: (ansible_distribution_major_version|int == 6) and (path_is_cloudstack.stat.exists|bool == True) |
| 16 | + when: > |
| 17 | + ((ansible_distribution_major_version|int == 6) and (path_is_cloudstack.stat.exists|bool == True)) or |
| 18 | + ((ansible_distribution_major_version == "7") and (env_numversion | version_compare('4.6','<'))) or |
| 19 | + (ansible_distribution in ["SUSE", "Ubuntu", "Debian"] or ansible_distribution_major_version|int >= 8) |
17 | 20 | tags: |
18 | 21 | - setup_mgmt |
19 | 22 |
|
|
34 | 37 | when: (ansible_distribution_major_version == "7") and (env_numversion | version_compare('4.6','>=')) and (env_numversion | version_compare('4.11','<')) |
35 | 38 | tags: |
36 | 39 | - setup_mgmt |
37 | | - |
38 | | -- name: Setup CloudStack Manager (centos/rhel7) ACS < 4.6 |
39 | | - shell: sleep {{ play_hosts.index(inventory_hostname) | int * 15 }} && /usr/bin/cloudstack-setup-management |
40 | | - when: (ansible_distribution_major_version == "7") and (env_numversion | version_compare('4.6','<')) |
41 | | - tags: |
42 | | - - setup_mgmt |
43 | | - |
44 | | -- name: Setup CloudStack Manager (centos/rhel8) |
45 | | - shell: sleep {{ play_hosts.index(inventory_hostname) | int * 15 }} && /usr/bin/cloudstack-setup-management |
46 | | - when: ansible_distribution_major_version|int == 8 |
47 | | - tags: |
48 | | - - setup_mgmt |
49 | | - |
50 | | -- name: Setup CloudStack Manager (SUSE) |
51 | | - shell: sleep {{ play_hosts.index(inventory_hostname) | int * 15 }} && /usr/bin/cloudstack-setup-management |
52 | | - when: ansible_distribution == "SUSE" |
53 | | - tags: |
54 | | - - setup_mgmt |
55 | | - |
56 | | -- name: Setup CloudStack Manager (Ubuntu) |
57 | | - shell: sleep {{ play_hosts.index(inventory_hostname) | int * 15 }} && /usr/bin/cloudstack-setup-management |
58 | | - when: ansible_distribution == "Ubuntu" |
59 | | - tags: |
60 | | - - setup_mgmt |
61 | | - |
62 | | -- name: Setup CloudStack Manager (Debian) |
63 | | - shell: sleep {{ play_hosts.index(inventory_hostname) | int * 15 }} && /usr/bin/cloudstack-setup-management |
64 | | - when: ansible_distribution == "Debian" |
65 | | - tags: |
66 | | - - setup_mgmt |
67 | | - |
68 | | -- name: Setup CloudStack Manager (el9) |
69 | | - shell: sleep {{ play_hosts.index(inventory_hostname) | int * 15 }} && /usr/bin/cloudstack-setup-management |
70 | | - when: ansible_distribution_major_version|int == 9 |
71 | | - tags: |
72 | | - - setup_mgmt |
0 commit comments