File tree Expand file tree Collapse file tree 2 files changed +11
-13
lines changed
provisioner.vagrant/tasks/create Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 76
76
groups : " {{ config.nodes[item].groups + ['site'] }}"
77
77
site : " {{ config.nodes[item] }}"
78
78
with_items : " {{ config.nodes.keys() }}"
79
+
80
+ - name : Create state directory structure on host
81
+ file :
82
+ path : " {{ config.statedir }}/{{ item }}"
83
+ state : directory
84
+ loop : " {{ groups['site'] }}"
85
+
86
+ - name : Copy common playbook configuration
87
+ copy :
88
+ src : ansible/config.yml
89
+ dest : " {{ config.statedir }}"
Original file line number Diff line number Diff line change 26
26
name : " {{ item }}"
27
27
ansible_host : " {{ (hostvars[item].vm_ip.stdout | from_json)[0].addr_info[0].local }}"
28
28
with_items : " {{ ansible_play_hosts }}"
29
-
30
- - name : Create state directory structure on host
31
- run_once : true
32
- file :
33
- path : " {{ config.statedir }}/{{ item }}"
34
- state : directory
35
- loop : " {{ config.groups['cluster'] + config.groups['clients'] }}"
36
-
37
- - name : Copy common playbook configuration
38
- run_once : true
39
- copy :
40
- src : ansible/config.yml
41
- dest : " {{ config.statedir }}"
You can’t perform that action at this time.
0 commit comments