Skip to content

Commit

Permalink
Drop owner/group from /var/lib/openstack
Browse files Browse the repository at this point in the history
These tasks run with "become: true", so the /var/lib/openstack dir
should be root owned, just like the scripts created in the dir.

Signed-off-by: James Slagle <[email protected]>
  • Loading branch information
slagle committed Jan 22, 2025
1 parent 5a65fbb commit 18077f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions roles/edpm_logrotate_crond/molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
hosts: all
gather_facts: false
tasks:

- name: install edpm_logrotate_crond
include_role:
name: "osp.edpm.edpm_logrotate_crond"
Expand Down
2 changes: 0 additions & 2 deletions roles/edpm_logrotate_crond/tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
path: "/var/lib/openstack"
mode: 0755
state: directory
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
setype: "container_file_t"

- name: Create /var/lib/openstack/cron
Expand Down
2 changes: 2 additions & 0 deletions roles/edpm_logrotate_crond/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
- name: Gather local facts
ansible.builtin.setup:
gather_subset:
- "!all"
- "!min"
- "local"

- name: Install cronie
Expand Down

0 comments on commit 18077f7

Please sign in to comment.