Commit 5dfe2a60 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

Install ntpsec for Ubuntu 23

parent c0cb250b
--- ---
dependencies: dependencies:
- { role: package, package_name: ntp, package_state: present, when: ansible_distribution != "Fedora" or ansible_distribution_major_version|int < 34 } - name: Install old ntp package
- { role: package, package_name: ntpsec, package_state: present, when: ansible_distribution == "Fedora" and ansible_distribution_major_version|int >= 34 } role: package
package_name: ntp
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 ) or
( ansible_distribution != "Fedora" and ansible_distribution != "Ubuntu" )
- 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 )
375ff12a509c9a5922a7dad40bdcf00fc0fb3500495cdcfbf75fd7eaa2b2c104 - f7db67d2806f9f32c0e9b3dfe3979a8ec73df099ecb3124a3f788171947150b8 -
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