File permission tasks.
Gitea Branch PR & Ansible Deployment / Check and Create PR (push) Successful in 24s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (benedikta) (push) Failing after 1m24s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (rikku) (push) Failing after 1m23s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (rinoa) (push) Failing after 1m25s
Gitea Branch PR & Ansible Deployment / PR Merge (push) Has been skipped
Gitea Branch PR & Ansible Deployment / Ansible Config Deployment (benedikta) (push) Has been skipped
Gitea Branch PR & Ansible Deployment / Ansible Config Deployment (rikku) (push) Has been skipped
Gitea Branch PR & Ansible Deployment / Ansible Config Deployment (rinoa) (push) Has been skipped

This commit is contained in:
2025-10-08 10:14:20 -04:00
parent 46ab58a69b
commit 6edff85e3f
3 changed files with 10 additions and 373 deletions
+10 -3
View File
@@ -10,17 +10,24 @@
default_owner: "1000"
default_group: "1000"
default_mode: "0644"
# file_metadata should be defined in host_vars/<host>.yml:
# file_metadata:
# "configs/serviceA/config.yaml":
# owner: "999"
# group: "999"
# mode: "0640"
pre_tasks:
- name: Get remote user's UID and GID
ansible.builtin.command: "id -u && id -g"
register: remote_user_info
changed_when: false
ignore_errors: true
- name: Set remote user's UID and GID facts
ansible.builtin.set_fact:
remote_uid: "{{ remote_user_info.stdout_lines[0] | int }}"
remote_gid: "{{ remote_user_info.stdout_lines[1] | int }}"
remote_uid: "{{ remote_user_info.stdout_lines[0] | default(default_owner) | int }}"
remote_gid: "{{ remote_user_info.stdout_lines[1] | default(default_group) | int }}"
- name: Annotate file metadata with become requirement
ansible.builtin.set_fact:
@@ -97,7 +104,7 @@
{% endfor %}
run_once: true
- name: Print concise become true list
- name: Print concise become: true list
ansible.builtin.debug:
msg: >-
Files requiring become=true: