From 9c430d66be7443d74f1223cb6bafbd1d799992fa Mon Sep 17 00:00:00 2001 From: Zach Wayer Date: Sat, 21 Jun 2025 20:46:54 -0500 Subject: [PATCH] Rocky 9 Changes Update the main task to support rocky 9 packages, and loop through group creation properly --- tasks/main.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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') }}"