Skip to content

Commit

Permalink
Added loggin to Molecule test
Browse files Browse the repository at this point in the history
It seems to be failing idempotence for "Restrict visibility to
/etc/cron{tab,.{d,hourly,daily,weekly,monthly}/}" task for some reason.
But the test itself seems to be working otherwise.
  • Loading branch information
pyllyukko committed Dec 21, 2024
1 parent c01bd9d commit e746d2e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
ansible.builtin.import_tasks: tasks/display_managers.yml
- name: Kernel
ansible.builtin.import_tasks: tasks/kernel.yml
- name: Logging
ansible.builtin.import_tasks: tasks/logging.yml

handlers:
- name: Handlers
Expand Down
10 changes: 10 additions & 0 deletions tasks/logging.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
---
# For tests that might not have this installed
- name: Install logrotate package (Slackware)
when: ansible_distribution == "Slackware"
become: true
community.general.slackpkg:
name: logrotate
state: present
tags:
- packages
- slackware
- name: Configure generic log retention period to {{ log_retention_time_in_months }} months
become: true
ansible.builtin.replace:
Expand Down

0 comments on commit e746d2e

Please sign in to comment.