Skip to content

Commit

Permalink
Add permissions to backup files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Palmer-Richez committed Aug 1, 2024
1 parent 0e4e33b commit 46c2ba7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions roles/uki_config/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,12 @@
ansible.builtin.copy:
content: "{{ ukify_config_backup.content | b64decode }}"
dest: "{{ ukify_conf_path }}"
owner: root
group: root
mode: 0644

Check failure on line 322 in roles/uki_config/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[octal-values]

Forbidden implicit octal value "0644"
seuser: system_u
serole: object_r
setype: etc_t
changed_when: false

- name: Delete new ukify configuration file
Expand All @@ -335,13 +341,25 @@
ansible.builtin.copy:
content: "{{ dracut_config_backup.content | b64decode }}"
dest: "{{ dracut_conf_path }}"
owner: root
group: root
mode: 0644

Check failure on line 346 in roles/uki_config/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[octal-values]

Forbidden implicit octal value "0644"
seuser: system_u
serole: object_r
setype: etc_t
changed_when: false

- name: Delete new dracut configuration file
when: dracut_config_backup is failed
ansible.builtin.file:
path: "{{ dracut_conf_path }}"
state: absent
owner: root
group: root
mode: 0644

Check failure on line 359 in roles/uki_config/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[octal-values]

Forbidden implicit octal value "0644"
seuser: system_u
serole: object_r
setype: etc_t
changed_when: false

- name: Restore kernel-install config
Expand Down

0 comments on commit 46c2ba7

Please sign in to comment.