Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Improve ssh server security
- action: augeas command="set" path="/files/etc/ssh/sshd_config/{{ item.path }}" value="{{ item.value }}"
- with_items:
- - path: 'PermitRootLogin'
- value: 'no'
- - path: 'PasswordAuthentication'
- value: 'no'
- - path: 'UsePAM'
- value: 'no'
- - path: 'ChallengeResponseAuthentication'
- value: 'no'
- - path: 'X11Forwarding'
- value: 'no'
- - path: 'RSAAuthentication'
- value: 'yes'
- - path: 'PubkeyAuthentication'
- value: 'yes'
- notify:
- - Restart sshd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement