diff --git a/ansible/playbooks/init-nodes.yml b/ansible/playbooks/init-nodes.yml index 2d658dd..a495fa2 100644 --- a/ansible/playbooks/init-nodes.yml +++ b/ansible/playbooks/init-nodes.yml @@ -94,6 +94,7 @@ args: chdir: /etc/sysconfig/network-scripts/ creates: /etc/sysconfig/network-scripts/ifcfg-br-mgmt + when: not aio_install tags: - interfaces @@ -137,7 +138,7 @@ when: sshkey_register.ssh_public_key != "" register: sshkey_fetch - when: tag.find("infra") != -1 + when: tag.find("infra") != -1 or aio_install tags: infra diff --git a/ansible/playbooks/role-infra-host.yml b/ansible/playbooks/role-infra-host.yml index cb5f65d..cce1dbc 100644 --- a/ansible/playbooks/role-infra-host.yml +++ b/ansible/playbooks/role-infra-host.yml @@ -99,7 +99,15 @@ mode: '0644' with_items: - user_lxc - - user_galera + + - name: Disable SSH Agent Forwarding + lineinfile: + dest: /etc/ssh/sshd_config + regexp: '^.*AllowAgentForwarding' + line: 'AllowAgentForwarding no' + tags: services + notify: + - restart_sshd - name: Check playbooks