And remove group read access to =~monkey/.ssh/known_hosts= on Core,
else the client will remove it later (producing a spurious diff, and a
re-config loop).
pubkeyfile: "{{ pubkeypath }}/ssh_host_ecdsa_key.pub"
pubkey: "{{ lookup('file', pubkeyfile) }}"
lineinfile:
- regexp: "^{{ domain_name }}"
+ regexp: "^{{ domain_name }},{{ front_addr }} ecdsa-sha2-nistp256 "
line: "{{ domain_name }},{{ front_addr }} {{ pubkey }}"
path: /home/monkey/.ssh/known_hosts
create: yes
owner: monkey
group: monkey
- mode: "u=rw,g=r,o="
+ mode: "u=rw,g=,o="
#+END_SRC
** Install Unattended Upgrades
pubkeyfile: "{{ pubkeypath }}/ssh_host_ecdsa_key.pub"
pubkey: "{{ lookup('file', pubkeyfile) }}"
lineinfile:
- regexp: "^{{ domain_name }}"
+ regexp: "^{{ domain_name }},{{ front_addr }} ecdsa-sha2-nistp256 "
line: "{{ domain_name }},{{ front_addr }} {{ pubkey }}"
path: /home/monkey/.ssh/known_hosts
create: yes
owner: monkey
group: monkey
- mode: "u=rw,g=r,o="
+ mode: "u=rw,g=,o="
- name: Install basic software.
become: yes