Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade CentOS after build, upgrade Debian during build
Upgrade from 7.8 to 7.9 on CentOS cause issue after sysprep (non-bootable image)
- Loading branch information
Showing
4 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
- hosts: pfservers | ||
name: upgrade CentOS OS to latest version | ||
become: True | ||
gather_facts: True | ||
tags: upgrade | ||
|
||
tasks: | ||
- name: update to latest OS version (EL) | ||
yum: | ||
name: '*' | ||
state: latest | ||
update_cache: yes | ||
register: upgrade_os_el_register | ||
when: ansible_os_family == 'RedHat' | ||
|
||
- name: reboot to have latest Linux kernel packages in place when installing PacketFence | ||
reboot: | ||
when: upgrade_os_el_register is changed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters