Files
ansible-role-aide/tests/tests_default.yml
T
2024-11-12 11:15:10 +01:00

21 lines
583 B
YAML

# SPDX-License-Identifier: MIT
---
- name: Ensure that the role runs with default parameters
hosts: all
gather_facts: false # test that role works in this case
roles:
- linux-system-roles.aide
tasks:
- name: Check if file exists
block:
- 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:
- not file_check.stat.exists
fail_msg: "The file does exist."