--- # Cannot use the standard, hosts use /etc/ssh/keys/%u # - name: Add SSH public keys # authorized_key: # user: "nschottelius" # state: present # key: "{{ item }}" # with_items: "{{ ssh_keys }}" # tags: # - base # - ssh - name: Add SSH public keys ansible.builtin.template: src: authorized_keys.j2 dest: /etc/ssh/keys/{{ ansible_user }} owner: root group: root mode: '0444' tags: - ssh - base - name: authorized_key: user: "nschottelius" state: present key: "{{ item }}" with_items: "{{ ssh_keys }}" tags: - base - ssh - name: Mount data NFS volume ansible.posix.mount: src: 10.165.71.1:/mtx_syna_lat_internal_ru path: /mnt state: mounted fstype: nfs