Commit b973d5c6 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

playbook: fix ntp installation for Debian 12 (use ntpsec)

parent c5bd9cec
......@@ -7,14 +7,16 @@ dependencies:
when: ( ansible_distribution == "Fedora" and ansible_distribution_major_version|int < 34 ) or
( ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int < 23 ) or
( ansible_distribution == "SLES" and ansible_distribution_major_version|int < 15 ) or
( ansible_distribution != "Fedora" and ansible_distribution != "Ubuntu" and ansible_distribution != "SLES")
( ansible_distribution == "Debian" and ansible_distribution_major_version|int < 12 ) or
( ansible_distribution != "Fedora" and ansible_distribution != "Ubuntu" and ansible_distribution != "SLES" and ansible_distribution != "Debian" )
- name: Install ntpsec package
role: package
package_name: ntpsec
package_state: present
when: ( ansible_distribution == "Fedora" and ansible_distribution_major_version|int >= 34 ) or
( ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int >= 23 )
( ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int >= 23 ) or
( ansible_distribution == "Debian" and ansible_distribution_major_version|int >= 12 )
- name: Install chrony package
role: package
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment