yamllint, ansible-lint, and tags everywhere

This commit is contained in:
Jérémy Dubois 2023-10-23 09:33:33 +02:00
parent a217bb2e56
commit 28021670f0
6 changed files with 13 additions and 2 deletions

View file

@ -17,7 +17,7 @@
vars:
user: "{{ item.value }}"
with_dict: "{{ evolix_users }}"
when:
when:
- user.create == evobsd_users_create
- evolix_users != {}
tags:

View file

@ -26,6 +26,9 @@
- name: "Gather available local users"
getent:
database: passwd
tags:
- accounts
- admin
- name: "Home directory for '{{ user.name }}' is only accesible by owner"
file:

View file

@ -8,4 +8,5 @@
- "'CHANGED:' in _ansible_commit.stdout"
ignore_errors: true
register: _ansible_commit
tags: always
tags:
- always

View file

@ -1,3 +1,4 @@
# yamllint disable rule:line-length
---
# Info : old zzz_evobackup used sh, and since "sh" match "bash", we keep "sh" for regex commands

View file

@ -5,7 +5,11 @@
changed_when: false
failed_when: false
check_mode: false
tags:
- evocheck-exec
- debug:
var: evocheck_run.stdout_lines
when: evocheck_run.stdout | length != 0
tags:
- evocheck-exec

View file

@ -35,6 +35,8 @@
file:
state: absent
path: /etc/logsentry/logsentry.sh
tags:
- logsentry
- name: "Hourly cron job for logsentry.sh is installed"
cron: