fix(permissions): add missing become:true to all cross-platform /usr/local/bin writes

This commit is contained in:
Haitao Pan 2026-06-19 18:56:47 +08:00
parent a3e570371a
commit 6aa240c16b
8 changed files with 8 additions and 0 deletions

View File

@ -85,6 +85,7 @@
when:
- cloud_cli_prereqs_install_gcloud_cli | bool
- not ansible_check_mode
become: true
- name: Verify Azure CLI on Linux
ansible.builtin.command: az version

View File

@ -47,6 +47,7 @@
mode: "0755"
notify: Restart acp gemini
when: not (acp_gemini_bridge_use_prebuilt | bool)
become: true
- name: Restore immutable flag on Gemini bridge binary
ansible.builtin.command:

View File

@ -27,6 +27,7 @@
hostnamectl set-hostname "{{ inventory_hostname }}"
hostname "{{ inventory_hostname }}"
echo -n "{{ inventory_hostname }}" > /etc/hostname
become: true
- name: Create systemd service
copy:

View File

@ -55,6 +55,7 @@
owner: root
group: root
mode: "0755"
become: true
- name: Install Modern IT History update service
ansible.builtin.template:

View File

@ -45,6 +45,7 @@
mode: '0755'
remote_src: true
when: inventory_hostname in groups[group]
become: true
- name: Remove otelcol-contrib archive
ansible.builtin.file:

View File

@ -31,6 +31,7 @@
mode: '0755'
remote_src: true
when: inventory_hostname in groups[group]
become: true
- name: Remove process-exporter archive
ansible.builtin.file:

View File

@ -69,6 +69,7 @@
- prometheus
- promtool
when: inventory_hostname in groups[group]
become: true
- name: Create default file_sd config
ansible.builtin.template:

View File

@ -44,6 +44,7 @@
- vault_deploy_mode == "standalone"
- ansible_os_family != 'Darwin'
- vault_binary_check.rc != 0 or (vault_binary_check.stdout | default('')) is not search(vault_version)
become: true
- name: Ensure standalone Vault directories exist
ansible.builtin.file: