Files
homelab/ansible/roles/common/tasks/main.yml
T
Adyrem 60856b5b65 Fix authorized_key FQCN and add ansible.posix to CI collections
ansible.posix.authorized_key replaces the bare module name removed
in ansible-core 2.x.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 18:00:11 +02:00

29 lines
596 B
YAML

---
- name: Set timezone
community.general.timezone:
name: "{{ timezone }}"
- name: Configure passwordless sudo for wheel
copy:
dest: /etc/sudoers.d/wheel
content: "%wheel ALL=(ALL) NOPASSWD: ALL\n"
mode: "0440"
validate: visudo -cf %s
- name: Ensure admin SSH key is authorized
ansible.posix.authorized_key:
user: "{{ admin_user }}"
key: "{{ admin_ssh_key }}"
state: present
- name: Install base packages
community.general.pacman:
name:
- vim
- git
- htop
- curl
- base-devel
state: present
update_cache: true