diff --git a/playbooks/groups/taskotron-client-hosts.yml b/playbooks/groups/taskotron-client-hosts.yml index a39c5ebec2..7c88b66376 100644 --- a/playbooks/groups/taskotron-client-hosts.yml +++ b/playbooks/groups/taskotron-client-hosts.yml @@ -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 diff --git a/roles/basessh/tasks/main.yml b/roles/basessh/tasks/main.yml index e394d95968..d425a15472 100644 --- a/roles/basessh/tasks/main.yml +++ b/roles/basessh/tasks/main.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