why is this making many lines please stop

This commit is contained in:
2026-01-26 00:19:53 -07:00
parent b5d9f37bb7
commit df2aa04ec6

View File

@@ -1,14 +1,16 @@
- name: Ensure sshd has AuthorizedKeysCommand - name: Ensure sshd has AuthorizedKeysCommand
lineinfile: lineinfile:
state: present
path: /etc/ssh/sshd_config path: /etc/ssh/sshd_config
regexp: '^AuthorizedKeysCommand' regexp: '^#?AuthorizedKeysCommand'
line: 'AuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys' line: 'AuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys'
notify: restart sshd notify: restart sshd
- name: Ensure sshd has AuthorizedKeysCommandUser - name: Ensure sshd has AuthorizedKeysCommandUser
lineinfile: lineinfile:
state: present
path: /etc/ssh/sshd_config path: /etc/ssh/sshd_config
regexp: '^AuthorizedKeysCommandUser' regexp: '^#?AuthorizedKeysCommandUser'
line: 'AuthorizedKeysCommandUser nobody' line: 'AuthorizedKeysCommandUser nobody'
notify: restart sshd notify: restart sshd