--- - name: Create group group: name: "{{ emacsconf_group }}" state: present - name: Create user user: name: "{{ emacsconf_user }}" group: "{{ emacsconf_group }}" state: present - name: Add public key for authorized access ansible.posix.authorized_key: user: "{{ emacsconf_user }}" state: present key: '{{ item }}' with_file: - ../../base/files/keys/sachac - ../../base/files/keys/orga