infra/ansible/roles/debian/tasks/main.yml
Graham McIntire 5e8823f4dd
fix: resolve all logic bugs
- Remove duplicate firewall include_role from base role (#18)
- Move remote_user from [ssh_connection] to [defaults] in ansible.cfg (#20)
- Add set -euo pipefail to run.sh (#21)
- Delete orphaned playbook_handlers.yml (#22)
- Fix changed_when: true in debian tasks (#23)
- Add tailscale_authkey env var lookup with TAILSCALE_KEY fallback (#25)
- Document -K requirement in bootstrap.yml (#26)
- Replace bare ansible_host=mail/git with IP addresses (#27)
- Update findings.md
2026-06-04 14:43:06 -05:00

41 lines
1.3 KiB
YAML

- name: "Disable Proxmox enterprise repository (requires paid subscription)"
ansible.builtin.command:
cmd: mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.disabled
removes: /etc/apt/sources.list.d/pve-enterprise.list
changed_when: false
- name: "Check for MariaDB repo file"
ansible.builtin.stat:
path: /etc/apt/sources.list.d/mariadb.sources
register: _mariadb_repo_stat
- name: "Read MariaDB repo file (if present)"
ansible.builtin.slurp:
path: /etc/apt/sources.list.d/mariadb.sources
register: _mariadb_repo_content
when: _mariadb_repo_stat.stat.exists
- name: "Remove stale MariaDB 12.2 repo (not available for trixie)"
ansible.builtin.file:
path: /etc/apt/sources.list.d/mariadb.sources
state: absent
when:
- _mariadb_repo_content.content is defined
- "'repo/12.2/debian' in (_mariadb_repo_content.content | b64decode)"
- name: "Install updates"
ansible.builtin.apt:
name: "*"
state: latest
update_cache: true
cache_valid_time: 3600
force_apt_get: true
autoremove: true
autoclean: true
- name: "Secure shared memory"
ansible.builtin.lineinfile:
path: /etc/fstab
state: present
regexp: '^tmpfs\s+/run/shm\s+'
line: "tmpfs /run/shm tmpfs defaults,noexec,nosuid 0 0"