- make the global update only run on first setup
- make the ntp/date install faster
This commit is contained in:
parent
f00b97e48e
commit
78150e7804
1 changed files with 13 additions and 8 deletions
|
@ -1,16 +1,21 @@
|
|||
---
|
||||
- name: update all
|
||||
action: command yum -y update
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: ntpdate install
|
||||
action: yum state=installed pkg=ntpdate
|
||||
command: yum -y update creates=/etc/sysconfig/global-upate-applied
|
||||
register: updated
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: ntp install
|
||||
action: yum state=installed pkg=ntp
|
||||
- name: write out global file
|
||||
copy: content="updated" dest=/etc/sysconfig/global-update-applied
|
||||
when: updated is defined
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: ntp pkgs
|
||||
action: yum state=installed pkg=$item
|
||||
with_items:
|
||||
- ntpdate
|
||||
- ntp
|
||||
tags:
|
||||
- packages
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue