- make the global update only run on first setup

- make the ntp/date install faster
This commit is contained in:
Seth Vidal 2013-06-25 18:31:36 +00:00
parent f00b97e48e
commit 78150e7804

View file

@ -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