File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 261
261
ansible.builtin.include_tasks : " build.yml"
262
262
loop : " {{ lookup('dict', compute_instances, wantlist=True) }}"
263
263
264
+ - name : Set file system storage
265
+ ansible.builtin.include_tasks : " create_fss.yml"
266
+ when : use_fss
267
+
264
268
- name : Configure new instances
265
269
hosts : all
266
270
gather_facts : false
344
348
345
349
tasks :
346
350
351
+ - name : Delete file system storage
352
+ ansible.builtin.include_tasks : " delete_fss.yml"
353
+ when : use_fss
354
+
347
355
- name : Terminate the instances
348
356
oracle.oci.oci_compute_instance :
349
357
id : " {{ hostvars[item]['instance_ocid'] }}"
380
388
state : absent
381
389
path : " {{ item }}"
382
390
loop :
391
+ - fss_vars.yml
383
392
- oci_vars.yml
Original file line number Diff line number Diff line change 15
15
mode : " 0644"
16
16
become : true
17
17
become_user : " {{ username }}"
18
- delegate_to : " {{ item }}"
19
- loop : " {{ groups['controlplane'] }}"
20
-
18
+
21
19
- name : Create file fss-pvc.yaml
22
20
ansible.builtin.template :
23
21
src : fss_pvc.j2
24
22
dest : ~/fss-pvc.yaml
25
23
mode : " 0644"
26
24
become : true
27
25
become_user : " {{ username }}"
28
- delegate_to : " {{ item }}"
29
- loop : " {{ groups['controlplane'] }}"
30
-
26
+
31
27
- name : Create file fss-pod.yaml
32
28
ansible.builtin.template :
33
29
src : fss_pod.j2
34
30
dest : ~/fss-pod.yaml
35
31
mode : " 0644"
36
32
become : true
37
33
become_user : " {{ username }}"
38
- delegate_to : " {{ item }}"
39
- loop : " {{ groups['controlplane'] }}"
34
+
You can’t perform that action at this time.
0 commit comments