see if we can defer facts gathering until after ssh host key setup is done
This commit is contained in:
parent
c591f490b8
commit
ff8f5e1930
2 changed files with 7 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
- name: basic configuration
|
||||
hosts: taskotron-dev-client-hosts:taskotron-stg-client-hosts:taskotron-prod-client-hosts
|
||||
user: root
|
||||
gather_facts: True
|
||||
gather_facts: False
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
|
|
|
@ -25,6 +25,12 @@
|
|||
- /root/.ssh/known_hosts
|
||||
when: birthday is defined
|
||||
|
||||
- name: gather facts
|
||||
setup:
|
||||
check_mode: no
|
||||
ignore_errors: True
|
||||
register: facts
|
||||
|
||||
- name: check if sshd port is already known by selinux
|
||||
shell: semanage port -l | grep ssh
|
||||
register: sshd_selinux_port
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue