4
0
Fork 0

with_items to loop

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2023-01-25 10:01:14 +00:00
parent 674e0fab16
commit 7760f35161
No known key found for this signature in database
GPG key ID: 1DE02A772D0908F9
4 changed files with 5 additions and 8 deletions

View file

@ -23,7 +23,7 @@
path: "{{ item.path }}"
regexp: '^(\s*)(daily|weekly|monthly|yearly)$'
replace: "\\1{{ rhel9cis_logrotate }}"
with_items:
loop:
- "{{ log_rotates.files }}"
- { path: "/etc/logrotate.conf" }
loop_control: