|
14 | 14 |
|
15 | 15 | tasks: |
16 | 16 | - name: Run the role |
17 | | - include_role: |
18 | | - name: linux-system-roles.storage |
| 17 | + include_tasks: tasks/run_role_with_clear_facts.yml |
19 | 18 |
|
20 | 19 | - name: Mark tasks to be skipped |
21 | 20 | set_fact: |
|
24 | 23 | - "{{ (lookup('env', |
25 | 24 | 'SYSTEM_ROLES_REMOVE_CLOUD_INIT') in ['', 'false']) | |
26 | 25 | ternary('packages_installed', '') }}" |
27 | | - - service_facts |
28 | 26 |
|
29 | 27 | - name: Get unused disks |
30 | 28 | include_tasks: get_unused_disk.yml |
|
33 | 31 | max_return: 1 |
34 | 32 |
|
35 | 33 | - name: Create a LVM logical volume with default fs_type |
36 | | - include_role: |
37 | | - name: linux-system-roles.storage |
| 34 | + include_tasks: tasks/run_role_with_clear_facts.yml |
38 | 35 | vars: |
39 | 36 | storage_pools: |
40 | 37 | - name: foo |
|
48 | 45 | include_tasks: verify-role-results.yml |
49 | 46 |
|
50 | 47 | - name: Change the file system signature on the logical volume created above |
51 | | - include_role: |
52 | | - name: linux-system-roles.storage |
| 48 | + include_tasks: tasks/run_role_with_clear_facts.yml |
53 | 49 | vars: |
54 | 50 | storage_pools: |
55 | 51 | - name: foo |
|
64 | 60 | include_tasks: verify-role-results.yml |
65 | 61 |
|
66 | 62 | - name: Re-run the role on the same volume without specifying fs_type |
67 | | - include_role: |
68 | | - name: linux-system-roles.storage |
| 63 | + include_tasks: tasks/run_role_with_clear_facts.yml |
69 | 64 | vars: |
70 | 65 | storage_pools: |
71 | 66 | - name: foo |
|
86 | 81 | include_tasks: verify-role-results.yml |
87 | 82 |
|
88 | 83 | - name: Repeat the previous invocation to verify idempotence |
89 | | - include_role: |
90 | | - name: linux-system-roles.storage |
| 84 | + include_tasks: tasks/run_role_with_clear_facts.yml |
91 | 85 | vars: |
92 | 86 | storage_pools: |
93 | 87 | - name: foo |
|
102 | 96 | include_tasks: verify-role-results.yml |
103 | 97 |
|
104 | 98 | - name: Remove the FS |
105 | | - include_role: |
106 | | - name: linux-system-roles.storage |
| 99 | + include_tasks: tasks/run_role_with_clear_facts.yml |
107 | 100 | vars: |
108 | 101 | storage_pools: |
109 | 102 | - name: foo |
|
116 | 109 | - name: Verify role results - 5 |
117 | 110 | include_tasks: verify-role-results.yml |
118 | 111 |
|
119 | | - |
120 | 112 | - name: Clean up |
121 | | - include_role: |
122 | | - name: linux-system-roles.storage |
| 113 | + include_tasks: tasks/run_role_with_clear_facts.yml |
123 | 114 | vars: |
124 | 115 | storage_pools: |
125 | 116 | - name: foo |
|
0 commit comments