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:
parent
391447a345
commit
2ca88c2711
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue