Restrict (and create) .ssh directory

This commit is contained in:
Jake Howard 2020-04-04 21:19:05 +01:00
parent e2219f90b3
commit 8938973461
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -11,6 +11,14 @@
- 'wireguard-arch' - 'wireguard-arch'
- 'wireguard-tools' - 'wireguard-tools'
- name: Create .ssh directory
file:
state: directory
path: "{{ home }}/.ssh"
owner: "{{ user }}"
mode: 0700
directory_mode: 0700
- name: Install assh config - name: Install assh config
copy: copy:
src: ./files/assh.yml src: ./files/assh.yml