why is this making many lines please stop
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user