1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

add message to warn the user

+ Added a message that will warn the user that fail2ban is not installed.
+ Increased the version integer for the simple versionscheck.
This commit is contained in:
L3D 2021-04-12 16:56:48 +02:00
parent 391447a345
commit 2ca88c2711
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 7 additions and 1 deletions

View file

@ -20,3 +20,9 @@
mode: 0444 mode: 0444
notify: systemctl restart fail2ban notify: systemctl restart fail2ban
when: "'fail2ban' in ansible_facts.packages" when: "'fail2ban' in ansible_facts.packages"
- name: warn if fail2ban is not installed
ansible.builtin.fail:
msg: "the package fail2ban is not installed. no fail2ban filters deployed."
when: "'fail2ban' not in ansible_facts.packages"
ignore_errors: true

View file

@ -20,5 +20,5 @@ gitea_variables:
paths: paths:
- 'vars' - 'vars'
playbook_version_number: 8 # should be int playbook_version_number: 9 # should be int
playbook_version_path: 'do1jlr.gitea.version' playbook_version_path: 'do1jlr.gitea.version'