|
1 | 1 | ---
|
2 | 2 | - name: Converge
|
3 | 3 | hosts: all
|
4 |
| - tasks: |
5 |
| - - name: Apt update and install rsync, ping, iproute |
6 |
| - apt: |
7 |
| - update_cache: yes |
8 |
| - name: |
9 |
| - - rsync |
10 |
| - - inetutils-ping |
11 |
| - - iproute2 |
12 |
| - state: present |
13 |
| - when: ansible_os_family == "Debian" |
| 4 | + vars_files: |
| 5 | + - "tests/pacemaker_corosync_local.yml" |
| 6 | + pre_tasks: |
| 7 | + - name: Apt update and install rsync, ping, iproute |
| 8 | + apt: |
| 9 | + update_cache: yes |
| 10 | + name: |
| 11 | + - rsync |
| 12 | + - inetutils-ping |
| 13 | + - iproute2 |
| 14 | + state: present |
| 15 | + when: ansible_os_family == "Debian" |
14 | 16 |
|
15 |
| - - name: Yum install iproute to fix undefined ansible_default_ipv4.address |
16 |
| - yum: |
17 |
| - name: iproute |
18 |
| - state: present |
19 |
| - when: |
20 |
| - - ansible_distribution == "CentOS" |
21 |
| - - ansible_distribution_major_version == "7" |
| 17 | + - name: Yum install iproute to fix undefined ansible_default_ipv4.address |
| 18 | + yum: |
| 19 | + name: iproute |
| 20 | + state: present |
| 21 | + when: |
| 22 | + - ansible_distribution == "CentOS" |
22 | 23 |
|
23 |
| - - name: Add a container to a network, leaving existing containers connected |
24 |
| - delegate_to: localhost |
25 |
| - community.general.docker_network: |
26 |
| - name: pacemaker-network |
27 |
| - connected: |
28 |
| - - "{{ inventory_hostname }}" |
29 |
| - appends: yes |
| 24 | + - name: Add a container to a network, leaving existing containers connected |
| 25 | + delegate_to: localhost |
| 26 | + community.general.docker_network: |
| 27 | + name: pacemaker-network |
| 28 | + connected: |
| 29 | + - "{{ inventory_hostname }}" |
| 30 | + appends: yes |
30 | 31 |
|
31 |
| - - name: Re-collect network facts required after installation iproute |
32 |
| - setup: |
33 |
| - gather_subset: network |
| 32 | + - name: Re-collect network facts required after installation iproute |
| 33 | + setup: |
| 34 | + gather_subset: network |
34 | 35 |
|
35 |
| - - name: Show ansible_interfaces |
36 |
| - debug: |
37 |
| - var: ansible_interfaces |
| 36 | + - name: Show ansible_interfaces |
| 37 | + debug: |
| 38 | + var: ansible_interfaces |
38 | 39 |
|
39 |
| - - name: Include keepalived vars |
40 |
| - include_vars: "tests/pacemaker_corosync_local.yml" |
41 |
| - |
42 |
| - - name: "Include ansible-role-pacemaker-corosync" |
43 |
| - include_role: |
44 |
| - name: "ansible-role-pacemaker_corosync" |
| 40 | + roles: |
| 41 | + - role: "{{ playbook_dir | dirname | dirname | basename }}" |
0 commit comments