Remove all the '| bool' occurrences.

This commit is contained in:
Andrea Dell'Amico 2024-08-01 13:33:14 +02:00
parent c29608f849
commit 7640d6379e
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 5 additions and 5 deletions

View File

@ -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: