- 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 - name: update all
action: command yum -y update command: yum -y update creates=/etc/sysconfig/global-upate-applied
register: updated
tags: tags:
- packages - packages
- name: ntpdate install - name: write out global file
action: yum state=installed pkg=ntpdate copy: content="updated" dest=/etc/sysconfig/global-update-applied
when: updated is defined
tags: tags:
- packages - packages
- name: ntp install - name: ntp pkgs
action: yum state=installed pkg=ntp action: yum state=installed pkg=$item
with_items:
- ntpdate
- ntp
tags: tags:
- packages - packages