Skip to content

Commit 201b673

Browse files
committed
Use quadlet for logrotate_crond
Signed-off-by: Brendan Shephard <[email protected]>
1 parent f1accda commit 201b673

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

roles/edpm_logrotate_crond/tasks/logrotate_crond.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,13 @@
2424
logrotate_crond: "{{ lookup('template', 'logrotate_crond.yaml.j2') | from_yaml }}"
2525
edpm_container_standalone_kolla_config_files:
2626
logrotate_crond: "{{ lookup('file', 'files/logrotate_crond.yaml') | from_yaml }}"
27+
when: not ansible_local.bootc
28+
29+
- name: Manage logrotate crond containers
30+
ansible.builtin.systemd_service:
31+
name: edpm-compute@logrotate_crond
32+
enabled: true
33+
state: started
34+
become: true
35+
when: ansible_local.bootc
36+

roles/edpm_logrotate_crond/tasks/run.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,12 @@
2727
logrotate_crond: "{{ lookup('template', 'logrotate_crond.yaml.j2') | from_yaml }}"
2828
edpm_container_standalone_kolla_config_files:
2929
logrotate_crond: "{{ lookup('file', 'files/logrotate_crond.yaml') | from_yaml }}"
30+
when: not ansible_local.bootc
31+
32+
- name: Manage logrotate crond containers
33+
ansible.builtin.systemd_service:
34+
name: edpm-compute@logrotate_crond
35+
enabled: true
36+
state: started
37+
become: true
38+
when: ansible_local.bootc

0 commit comments

Comments
 (0)