diff --git a/playbooks/sshfs.yaml b/playbooks/sshfs.yaml index 53f83a4..7b17e43 100644 --- a/playbooks/sshfs.yaml +++ b/playbooks/sshfs.yaml @@ -11,22 +11,10 @@ sshfsport: 22000 tasks: - name: sshfs - ansible.builtin.group: + apt: 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: src: "./sshfs-key" dest: "/root/.ssh/"