Skip to content

Commit

Permalink
chore: fix ansible-lint 6.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
juju4 committed Apr 30, 2023
1 parent ba09953 commit 70d84bd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
6 changes: 2 additions & 4 deletions handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

- name: Augenrules
- name: Augenrules # noqa no-changed-when
ansible.builtin.command: augenrules
when: augenrules_file.stat.exists

Expand Down Expand Up @@ -28,11 +28,9 @@
## https://groups.google.com/forum/#!topic/ansible-project/pv1h1Ne7nSk
- name: Restart auditd - rhel7+
ansible.builtin.command: "service auditd restart" # noqa command-instead-of-module
ansible.builtin.command: "service auditd restart" # noqa command-instead-of-module no-changed-when
environment:
PATH: '/usr/sbin:/usr/bin:/sbin:/bin'
args:
warn: False
when: >
not (ansible_virtualization_type is defined and
(ansible_virtualization_type == "lxc" or ansible_virtualization_type == "docker")
Expand Down
7 changes: 4 additions & 3 deletions test/integration/default-nosyslog/default.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---

- hosts: all
- name: Test integration playbook
hosts: all
vars:
- auditd_exclusion_rules2: []
- audisp_syslog_enable: false
auditd_exclusion_rules2: []
audisp_syslog_enable: false
roles:
- juju4.auditd
13 changes: 7 additions & 6 deletions test/integration/default/default.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---

- hosts: all
- name: Test integration playbook
hosts: all
vars:
- auditd_exclusion_rules2: []
- auditd_log_all_execve: true
- auditd_log_all_connect: true
- auditd_log_all_socket: true
- auditd_laurel_enable: true
auditd_exclusion_rules2: []
auditd_log_all_execve: true
auditd_log_all_connect: true
auditd_log_all_socket: true
auditd_laurel_enable: true
roles:
- juju4.auditd
3 changes: 2 additions & 1 deletion test/vagrant/site.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---

- hosts: vagrantselect
- name: Test vagrant playbook
hosts: vagrantselect
roles:
- juju4.auditd

0 comments on commit 70d84bd

Please sign in to comment.