Skip to content

Commit

Permalink
Fix permissions being in delete task, not restore.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Palmer-Richez committed Aug 1, 2024
1 parent bbb5c4c commit 4c56b0e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions roles/uki_config/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -354,12 +354,6 @@
ansible.builtin.file:
path: "{{ dracut_conf_path }}"
state: absent
owner: root
group: root
mode: "0644"
seuser: system_u
serole: object_r
setype: etc_t
changed_when: false

- name: Restore kernel-install config
Expand All @@ -369,6 +363,12 @@
ansible.builtin.copy:
content: "{{ kernel_install_config_backup.content | b64decode }}"
dest: "{{ install_conf_path }}"
owner: root
group: root
mode: "0644"
seuser: system_u
serole: object_r
setype: etc_t
changed_when: false

- name: Remove new kernel-install configuration file
Expand Down

0 comments on commit 4c56b0e

Please sign in to comment.