iad2: adjust a bunch of things that were delegating directly to phx2 hosts
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
bed9f28de9
commit
2f81e76657
6 changed files with 26 additions and 26 deletions
|
@ -102,7 +102,7 @@
|
|||
- /root/.ssh/known_hosts
|
||||
- /etc/ssh/ssh_known_hosts
|
||||
when: inventory_hostname not in result.list_vms and inventory_hostname in groups['osbs_masters_stg']+groups['osbs_nodes_stg']
|
||||
delegate_to: osbs-control01.stg.phx2.fedoraproject.org
|
||||
delegate_to: osbs-control01.stg.{{ datacenter }}.fedoraproject.org
|
||||
|
||||
- name: (osbs-control01) make sure there is no old ssh host key for the host still around
|
||||
known_hosts: path={{item}} host={{ inventory_hostname }} state=absent
|
||||
|
@ -111,7 +111,7 @@
|
|||
- /root/.ssh/known_hosts
|
||||
- /etc/ssh/ssh_known_hosts
|
||||
when: inventory_hostname not in result.list_vms and inventory_hostname in groups['osbs_masters']+groups['osbs_nodes']
|
||||
delegate_to: osbs-control01.phx2.fedoraproject.org
|
||||
delegate_to: osbs-control01.{{ datacenter }}.fedoraproject.org
|
||||
|
||||
- name: wait for ssh on the vm to start back
|
||||
local_action: wait_for delay=10 host={{ inventory_hostname }} port=22 state=started timeout=1200
|
||||
|
@ -137,7 +137,7 @@
|
|||
- /root/.ssh/known_hosts
|
||||
- /etc/ssh/ssh_known_hosts
|
||||
when: inventory_hostname not in result.list_vms and inventory_hostname in groups['osbs_masters_stg']+groups['osbs_nodes_stg']
|
||||
delegate_to: osbs-control01.stg.phx2.fedoraproject.org
|
||||
delegate_to: osbs-control01.stg.{{ datacenter }}.fedoraproject.org
|
||||
|
||||
- name: (osbs-control01) add new ssh host key
|
||||
known_hosts: path={{item}} key="{{ hostkey.stdout }}" host={{ inventory_hostname }} state=present
|
||||
|
@ -146,7 +146,7 @@
|
|||
- /root/.ssh/known_hosts
|
||||
- /etc/ssh/ssh_known_hosts
|
||||
when: inventory_hostname not in result.list_vms and inventory_hostname in groups['osbs_masters']+groups['osbs_nodes']
|
||||
delegate_to: osbs-control01.phx2.fedoraproject.org
|
||||
delegate_to: osbs-control01.{{ datacenter }}.fedoraproject.org
|
||||
|
||||
- name: gather facts
|
||||
setup:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue