Red Hat Certified Engineer (RHCE) Study Guide by Andrew Mallett
Author:Andrew Mallett
Language: eng
Format: epub
ISBN: 9781484268612
Publisher: Apress
$ vim upgrade.yml
---
- name: Upgrade Systems
hosts: all
become: true
gather_facts: true
tasks:
- name: Upgrade CentOS
package:
name: "*"
state: latest
when: >
ansible_distribution == "CentOS" and
ansible_distribution_version != "8.2"
...
$ ansible-playbook upgrade.yml
Listing 7-3Updating CentOS Hosts
Running this Playbook for the first time will update the CentOS 8 client system. Running it a second time, no update will be required, as both systems will be at the correct and latest version.
To update the Ubuntu system, we can research the latest 18.04 release, which is currently 18.04.5. We need to dig into the ansible_lsb.descripton variable to see this. The following ad hoc command illustrates the ansible_lsb array, which is available by default on Ubuntu systems.$ ansible ubuntu -m setup -a "filter=ansible_lsb*"
172.16.120.188 | SUCCESS => {
"ansible_facts": {
"ansible_lsb": {
"codename": "bionic",
"description": "Ubuntu 18.04.5 LTS",
"id": "Ubuntu",
"major_release": "18",
"release": "18.04"
}
},
"changed": false
}
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Exploring Deepfakes by Bryan Lyon and Matt Tora(7728)
Robo-Advisor with Python by Aki Ranin(7625)
Offensive Shellcode from Scratch by Rishalin Pillay(6105)
Microsoft 365 and SharePoint Online Cookbook by Gaurav Mahajan Sudeep Ghatak Nate Chamberlain Scott Brewster(5023)
Ego Is the Enemy by Ryan Holiday(4958)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4438)
Python for ArcGIS Pro by Silas Toms Bill Parker(4183)
Elevating React Web Development with Gatsby by Samuel Larsen-Disney(3889)
Machine Learning at Scale with H2O by Gregory Keys | David Whiting(3626)
Learning C# by Developing Games with Unity 2021 by Harrison Ferrone(3285)
Speed Up Your Python with Rust by Maxwell Flitton(3231)
Liar's Poker by Michael Lewis(3223)
OPNsense Beginner to Professional by Julio Cesar Bueno de Camargo(3195)
Extreme DAX by Michiel Rozema & Henk Vlootman(3172)
Agile Security Operations by Hinne Hettema(3124)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic and Jasmin Redzepagic(3109)
Essential Cryptography for JavaScript Developers by Alessandro Segala(3083)
Cryptography Algorithms by Massimo Bertaccini(3001)
AI-Powered Commerce by Andy Pandharikar & Frederik Bussler(2983)
