diff --git a/tasks/main.yml b/tasks/main.yml index 7f03ba9..04d26fc 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -14,19 +14,17 @@ - curl - git - jq - - ncdu - - nfs-common - - python3 - - python3-pip - - python3-venv - tree - tmux - zsh - name: Add docker group ansible.builtin.group: - name: group + name: "{{ item }}" state: present + loop: + - docker + - sudo - name: Add User ansible.builtin.user: @@ -39,3 +37,9 @@ ssh_key_type: ed25519 create_home: true state: present + +- name: Set authorized key taken from file + ansible.posix.authorized_key: + user: zware + state: present + key: "{{ lookup('file', '~/.ssh/id_ed25519.pub') }}"