Changeset 13851 for main/waeup-ansible
- Timestamp:
- 25 Apr 2016, 21:44:31 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup-ansible/bootstrap.yml
r13850 r13851 44 44 state=present 45 45 46 - name: "bootstrap | sshd_config - disable dsakeys"46 - name: "bootstrap | sshd_config - disable weak keys" 47 47 lineinfile: 48 48 dest=/etc/ssh/sshd_config 49 49 backrefs=yes 50 line='# HostKey /etc/ssh/ssh_host_dsa_key' 51 regexp='^HostKey /etc/ssh/ssh_host_dsa_key' 52 state=present 53 notify: "restart sshd" 54 55 - name: "bootstrap | sshd_config - disable ecdsa keys" 56 lineinfile: 57 dest=/etc/ssh/sshd_config 58 backrefs=yes 59 line='# HostKey /etc/ssh/ssh_host_ecdsa_key' 60 regexp='^HostKey /etc/ssh/ssh_host_ecdsa_key' 61 state=present 50 line={{ item.line }} 51 regexp={{ item.regexp }} 52 with_items: 53 - { regexp: '^HostKey /etc/ssh/ssh_host_dsa_key', line: '# HostKey /etc/ssh/ssh_host_dsa_key' } 54 - { regexp: '^HostKey /etc/ssh/ssh_host_ecdsa_key', line: '# HostKey /etc/ssh/ssh_host_ecdsa_key' } 62 55 notify: "restart sshd" 63 56
Note: See TracChangeset for help on using the changeset viewer.