netz39-infra-ansible/host-beaker.yml
Alexander Dahl bc43af38d9 🚨 Add names to plays to fix name[play] linter warnings
Adds basic descriptions on what those host are supposed to do.
2025-03-02 09:22:05 +01:00

28 lines
747 B
YAML

---
- name: Setup things on host 'beaker' (proxmox server im space)
hosts: beaker.n39.eu
become: true
vars:
ansible_python_interpreter: /usr/bin/python3
roles:
tasks:
- name: Enable proxmox gui login for admin users
ansible.builtin.lineinfile:
path: /etc/pve/user.cfg
regexp: "^user:{{ item.logname }}@pam"
insertafter: "^user:"
line: "user:{{ item.logname }}@pam:1:0:::{{ item.email }}:::"
state: present
loop: "{{ users }}"
- name: Configure proxmox admin group
ansible.builtin.lineinfile:
path: /etc/pve/user.cfg
regexp: "^group:Admins:"
line: "group:Admins:{{ users | map(attribute='logname') | join(\"@pam,\") }}@pam::"
handlers: