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