Rework this area so we don't get chrony check failures all the time
This commit is contained in:
parent
4c4a150033
commit
df31d57750
1 changed files with 24 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: ntp pkgs
|
||||
- name: Install desired extra packages (yum)
|
||||
yum: state=present pkg={{ item }}
|
||||
with_items:
|
||||
- ntpdate
|
||||
|
@ -10,12 +10,33 @@
|
|||
tags:
|
||||
- packages
|
||||
|
||||
- name: ntp pkgs
|
||||
command: dnf install -y ntpdate ntp libsemanage-python libselinux-python
|
||||
- name: Install desired extra packages (dnf)
|
||||
dnf: state=present pkg={{ item }}
|
||||
with_items:
|
||||
- ntpdate
|
||||
- ntp
|
||||
- libsemanage-python
|
||||
- libselinux-python
|
||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: remove some packages (yum)
|
||||
yum: state=absent pkg={{ item }}
|
||||
with_items:
|
||||
- chrony
|
||||
tags:
|
||||
- packages
|
||||
when: ansible_distribution_major_version|int < 22
|
||||
|
||||
- name: remove some packages (dnf)
|
||||
dnf: state=absent pkg={{ item }}
|
||||
with_items:
|
||||
- chrony
|
||||
tags:
|
||||
- packages
|
||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||
|
||||
- name: put step-tickers in place
|
||||
copy: src="{{ files }}/common/step-tickers" dest=/etc/ntp/step-tickers
|
||||
when: ansible_cmdline.ostree is not defined
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue