Re-work the cloud_setup_basic.
This commit is contained in:
parent
e228e69ad2
commit
fe59adfd6b
1 changed files with 24 additions and 9 deletions
|
@ -1,23 +1,19 @@
|
||||||
---
|
---
|
||||||
- name: update all
|
|
||||||
command: yum -y update creates=/etc/sysconfig/global-update-applied
|
|
||||||
register: updated
|
|
||||||
tags:
|
|
||||||
- packages
|
|
||||||
|
|
||||||
- name: ntp pkgs
|
- name: ntp pkgs
|
||||||
action: yum state=present pkg={{ item }}
|
yum: state=present pkg={{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- ntpdate
|
- ntpdate
|
||||||
- ntp
|
- ntp
|
||||||
- libsemanage-python
|
- libsemanage-python
|
||||||
- libselinux-python
|
- libselinux-python
|
||||||
|
when: ansible_distribution_major_version < '22'
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: write out global-update-applied file if we updated
|
- name: ntp pkgs
|
||||||
copy: content="updated" dest=/etc/sysconfig/global-update-applied
|
command: dnf install -y ntpdate ntp libsemanage-python libselinux-python
|
||||||
when: updated is defined
|
when: ansible_distribution_major_version > '22'
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
|
@ -55,3 +51,22 @@
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
|
- name: update all
|
||||||
|
command: yum -y update creates=/etc/sysconfig/global-update-applied
|
||||||
|
register: updated
|
||||||
|
when: ansible_distribution_major_version < '22'
|
||||||
|
tags:
|
||||||
|
- packages
|
||||||
|
|
||||||
|
- name: update all
|
||||||
|
command: dnf -y update creates=/etc/sysconfig/global-update-applied
|
||||||
|
register: updated
|
||||||
|
when: ansible_distribution_major_version > '21'
|
||||||
|
tags:
|
||||||
|
- packages
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue