Ensure cron test restores state of crontab after test. Fix formatting in a few places. Do not check ansible managed header and fingerprint unless the test uses a custom template with header and fingerprint. Use default for gather_facts unless otherwise needed. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
19 lines
468 B
YAML
19 lines
468 B
YAML
# SPDX-License-Identifier: MIT
|
|
---
|
|
- name: Ensure that the role runs with default parameters
|
|
hosts: all
|
|
roles:
|
|
- role: linux-system-roles.aide
|
|
vars:
|
|
aide_init: true
|
|
tasks:
|
|
- name: Check if the file exists
|
|
ansible.builtin.stat:
|
|
path: /etc/aide.conf
|
|
register: file_check
|
|
|
|
- name: Assert that the file exists
|
|
ansible.builtin.assert:
|
|
that: file_check.stat.exists
|
|
fail_msg: The file does not exist.
|