@@ -11,22 +11,10 @@ | |||||
sshfsport: 22000 | sshfsport: 22000 | ||||
tasks: | tasks: | ||||
- name: sshfs | - name: sshfs | ||||
ansible.builtin.group: | |||||
apt: | |||||
name: sshfs | name: sshfs | ||||
state: present | |||||
- name: sshfs | |||||
ansible.builtin.user: | |||||
name: sshfs | |||||
state: present | |||||
group: sshfs | |||||
- name: make ssh home directory | |||||
file: | |||||
path: "/home/sshfs/.ssh/" | |||||
state: directory | |||||
owner: sshfs | |||||
group: sshfs | |||||
mode: '0700' | |||||
- name: copy private key | |||||
state: latest | |||||
- name: copy private key | |||||
copy: | copy: | ||||
src: "./sshfs-key" | src: "./sshfs-key" | ||||
dest: "/root/.ssh/" | dest: "/root/.ssh/" | ||||