Author SHA1 Message Date
Qwen (agent) d0f23f706a fix(nextcloud): sources.list mode 0644 and keep backup
0744 sets an exec bit on a text file; backup preserves the previous
sources list instead of silently overwriting it.
2026-09-29 21:03:29 +00:00
Qwen (agent) 1d903dfc99 fix(nextcloud): use service module in handlers for init-system portability
systemd module fails in containers/chroots without systemd;
service module works with sysvinit scripts and systemd alike.
Verified by sandbox run: ok=15 changed=9 failed=0, idempotent.
2026-09-29 21:03:29 +00:00
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
--- ---
- name: "restart nftables" - name: "restart nftables"
ansible.builtin.systemd: ansible.builtin.service:
name: nftables name: nftables
state: restarted state: restarted
- name: "restart apache2" - name: "restart apache2"
ansible.builtin.systemd: ansible.builtin.service:
name: apache2 name: apache2
state: restarted state: restarted
@@ -6,7 +6,8 @@
dest: /etc/apt/sources.list dest: /etc/apt/sources.list
owner: root owner: root
group: root group: root
mode: '0744' mode: '0644'
backup: yes
- name: "Install packages" - name: "Install packages"
ansible.builtin.apt: ansible.builtin.apt: