commit b46a6a25221938dd6683cb84b4fcbab1bed90d77
parent 715c431b1bc129831e3eae933669919fced673f0
Author: minerva-jupiter <ryouturn@gmail.com>
Date: Sat, 16 May 2026 14:04:56 +0900
fix(ansible): enable become for system updates
Ensure all playbooks run with elevated privileges by adding become: true and specify the root user for proxmox01.
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/ansible/inventory.ini b/ansible/inventory.ini
@@ -1,5 +1,5 @@
[debian_hosts]
-proxmox01 ansible_host=192.168.0.15
+proxmox01 ansible_host=192.168.0.15 ansible_user=root
devcontainer ansible_host=192.168.0.149
[ubuntu_hosts]
diff --git a/ansible/site.yml b/ansible/site.yml
@@ -1,11 +1,13 @@
- name: Update Debian and Ubuntu systems
hosts: debian_hosts:ubuntu_hosts
gather_facts: true
+ become: true
roles:
- debian_base
- name: Update Gentoo system
hosts: gentoo_hosts
gather_facts: true
+ become: true
roles:
- gentoo_base