Remove all the '| bool' occurrences.
This commit is contained in:
parent
c29608f849
commit
7640d6379e
|
@ -9,13 +9,13 @@
|
|||
|
||||
- name: Ensure that the ntp server is running
|
||||
service: name=ntp state=started enabled=yes
|
||||
when: ntp_service_enabled | bool
|
||||
when: ntp_service_enabled
|
||||
|
||||
- name: Ensure that the ntp package is not installed
|
||||
ansible.builtin.apt:
|
||||
pkg: ntp
|
||||
state: absent
|
||||
when: not ntp_service_enabled | bool
|
||||
when: not ntp_service_enabled
|
||||
|
||||
when:
|
||||
- ansible_distribution_file_variety == "Debian"
|
||||
|
@ -32,17 +32,17 @@
|
|||
|
||||
- name: Ensure that the ntpd server is running
|
||||
service: name=ntpd state=started enabled=yes
|
||||
when: ntp_service_enabled | bool
|
||||
when: ntp_service_enabled
|
||||
|
||||
- name: Ensure that the ntpd package is absent when not required
|
||||
ansible.builtin.yum:
|
||||
pkg: ntp
|
||||
state: present
|
||||
when: not ntp_service_enabled | bool
|
||||
when: not ntp_service_enabled
|
||||
|
||||
- name: Manage the ntp firewalld rules in the {{ firewalld_default_zone }} zone
|
||||
firewalld: service=ntp zone={{ firewalld_default_zone }} permanent=True state={{ ntp_enable_default_firewalld_rule }} immediate=True
|
||||
when: firewalld_enabled | bool
|
||||
when: firewalld_enabled
|
||||
tags: [ 'packages', 'ntp', 'firewall', 'iptables_rules' ]
|
||||
|
||||
when:
|
||||
|
|
Loading…
Reference in New Issue