update to test
This commit is contained in:
parent
7100577c07
commit
ac48383f1c
|
@ -7,7 +7,8 @@
|
|||
- name: Gather the package facts
|
||||
ansible.builtin.package_facts:
|
||||
manager: auto
|
||||
register: packages
|
||||
register: packages.stdout.find('fail2ban')
|
||||
# register: packages
|
||||
|
||||
# print the package facts in var
|
||||
#- name: print the package facts in var
|
||||
|
@ -21,7 +22,7 @@
|
|||
state: present
|
||||
# when: packages.stdout.find('fail2ban') == ""
|
||||
# when: "{{ packages['fail2ban'] | length }}"
|
||||
when: "'fail2ban' not defined in packages.stdout"
|
||||
when: fail2ban is undefined
|
||||
|
||||
# config fail2ban if is there is in the system
|
||||
#- name: config fail2ban
|
||||
|
|
Loading…
Reference in New Issue