don't run iface script on aio, make sure ssh is configured.

This commit is contained in:
Neil Hanlon 2022-01-15 15:56:13 -05:00
parent b48bc11262
commit 54d396ebf1
Signed by: neil
GPG Key ID: 705BC21EC3C70F34
2 changed files with 11 additions and 2 deletions

View File

@ -94,6 +94,7 @@
args: args:
chdir: /etc/sysconfig/network-scripts/ chdir: /etc/sysconfig/network-scripts/
creates: /etc/sysconfig/network-scripts/ifcfg-br-mgmt creates: /etc/sysconfig/network-scripts/ifcfg-br-mgmt
when: not aio_install
tags: tags:
- interfaces - interfaces
@ -137,7 +138,7 @@
when: sshkey_register.ssh_public_key != "" when: sshkey_register.ssh_public_key != ""
register: sshkey_fetch register: sshkey_fetch
when: tag.find("infra") != -1 when: tag.find("infra") != -1 or aio_install
tags: infra tags: infra

View File

@ -99,7 +99,15 @@
mode: '0644' mode: '0644'
with_items: with_items:
- user_lxc - 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 - name: Check playbooks