Files
server-infra/roles/common/tasks/main.yml
T
westfarn 6f05242ca7
Sync runner checkout / sync (push) Successful in 7s
Generate WordPress compose from the site list during provision.
Each host mounts wp-content and gets a compose file from inventory instead of a hand-copied one. Also allow LAN TCP 8020 so abc_voice is reachable through UFW.
2026-10-08 05:08:16 -05:00

28 lines
613 B
YAML

---
- name: Allow admin user passwordless sudo for Ansible
ansible.builtin.copy:
dest: "/etc/sudoers.d/{{ admin_user }}"
content: "{{ admin_user }} ALL=(ALL) NOPASSWD:ALL\n"
mode: "0440"
validate: visudo -cf %s
- name: Update apt cache
ansible.builtin.apt:
update_cache: true
cache_valid_time: 3600
- name: Install base packages
ansible.builtin.apt:
name:
- git
- python3
- python3-pip
- python3-venv
- curl
- ca-certificates
- gnupg
- apt-transport-https
- software-properties-common
- nfs-common
state: present