forked from saratov/infra
cleanup
This commit is contained in:
parent
b48532e328
commit
d990db6f83
@ -22,7 +22,9 @@
|
||||
- name: prepare nodes
|
||||
hosts: stack
|
||||
gather_facts: false
|
||||
strategy: free
|
||||
# cannot use free strategy due usage of add_host after
|
||||
# NICs reconfiguration
|
||||
#strategy: free
|
||||
pre_tasks:
|
||||
- meta: end_play
|
||||
when: destroy_all is defined and destroy_all
|
||||
@ -42,7 +44,7 @@
|
||||
- name: put keys to known hosts
|
||||
copy:
|
||||
src: ".tmp/{{ stack_name }}.known_hosts"
|
||||
dest: "/etc/openssh/known_hosts"
|
||||
dest: "/etc/openssh/ssh_known_hosts"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
@ -7,18 +7,8 @@
|
||||
loop_control:
|
||||
loop_var: n
|
||||
register: res
|
||||
# when: st.nodes[item].provider != 'bare'
|
||||
|
||||
#- debug: msg="{{env}}"
|
||||
|
||||
#- set_fact:
|
||||
#gen_nodes: "{{ dict({item: env['bare'][ st.nodes[item]['env_node'] ]}) }}"
|
||||
#when: st.nodes[item].provider == 'bare'
|
||||
|
||||
#- debug: msg="{{gen_nodes}}"
|
||||
|
||||
- set_fact:
|
||||
tmp_nodes: []
|
||||
- set_fact:
|
||||
gen_nodes: "{{ (res.results | map(attribute='ansible_facts.node') | list) + gen_nodes }}"
|
||||
# when: st.nodes[item].provider != 'bare'
|
||||
|
Loading…
Reference in New Issue
Block a user