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 }}
|
yum: state=present pkg={{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- ntpdate
|
- ntpdate
|
||||||
|
@ -10,12 +10,33 @@
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: ntp pkgs
|
- name: Install desired extra packages (dnf)
|
||||||
command: dnf install -y ntpdate ntp libsemanage-python libselinux-python
|
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
|
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- 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
|
- name: put step-tickers in place
|
||||||
copy: src="{{ files }}/common/step-tickers" dest=/etc/ntp/step-tickers
|
copy: src="{{ files }}/common/step-tickers" dest=/etc/ntp/step-tickers
|
||||||
when: ansible_cmdline.ostree is not defined
|
when: ansible_cmdline.ostree is not defined
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue