Deploying Ansible Playbooks Although the use of ad-hoc commands is feasible, being able to store the desired state of our managed nodes is preferable. This gives us both documentation of the configuration and the ability to configure new nodes in the same way with the same commands in the same order. Ansible Playbooks are at […]
Linux
Reset Root Password – RHEL 8
Recovering Lost Root User Passwords It is that dreaded first day at work where you turn up as the brand new system administrator and nobody knows the root password to the server and they are staring at you hopefully. Of course, if someone has a login with full sudo rights then it is a trivial […]
Using Ansible Inventory Files
Building Ansible Inventory As we have already briefly seen, the hosts that want to manage are configured within the inventory file that we either configure in the ansible.cfg or specify with the option -i* There are different formats to the file the default /etc/ansible/hosts file in in INI format. We can list the supported formats […]
Managing Users in Ansible
The user module in Ansible is the topic of this blog where we dive into managing Users in Ansible 2.8 running on our Red Hat Enterprise Linux 8 controller node. Rather than just running through tutorials covering elements of Ansible we are trying to build up a picture of what you can use Ansible for. […]
Using Ansible Variables in Inventory Files
Ansible Variables can be used within Playbooks but also within the inventory. When we look at the Apache Web Server package in Ubuntu it is apache2, in Enterprise Linux variants, it is httpd. Adding Ansible Variables to the inventory helps document the differences and makes the design of Playbooks, play and tasks more simple. Even […]
Ansible RHCE the new System Administration 3
Ansible and the Red Hat Certified Engineer (RHCE) – The Ansible RHCE With the release of Red Hat Enterprise Linux 8 in May 2019 the company shifted the focus of their premier administration certification to automation with Ansible, we now have the Ansible RHCE. The new System Administration 3 course that follows on from the […]