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
|
||||
action: command yum -y update
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: ntpdate install
|
||||
action: yum state=installed pkg=ntpdate
|
||||
command: yum -y update creates=/etc/sysconfig/global-update-applied
|
||||
register: updated
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: ntp install
|
||||
action: yum state=installed pkg=ntp
|
||||
- name: write out global-update-applied file if we updated
|
||||
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