Merge branch 'master' of /git/ansible
This commit is contained in:
commit
60ea109aa4
1 changed files with 13 additions and 8 deletions
|
@ -1,16 +1,21 @@
|
||||||
---
|
---
|
||||||
- name: update all
|
- name: update all
|
||||||
action: command yum -y update
|
command: yum -y update creates=/etc/sysconfig/global-update-applied
|
||||||
|
register: updated
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: ntpdate install
|
- name: write out global-update-applied file if we updated
|
||||||
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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue