Quantcast
Channel: Ansible – Earl C. Ruby III
Browsing latest articles
Browse All 10 View Live

The Right Way to reboot a host with Ansible

For a long time rebooting a host with Ansible has been tricky. The steps are: ssh to the hostReboot the hostDisconnect before the host closes your ssh connectionWait some number of seconds to ensure...

View Article



Generate a crypted password for Ansible

The Ansible user: command allows you to add a user to a Linux system with a password. The password must be passed to Ansible in a hashed password format using one of the hash formats supported by...

View Article

Updating ESXi root passwords and authorized ssh keys with Ansible

I manage a number of vCenter instances and a lot of ESXi hosts. Some of the hosts are production, some for test and development. Sometimes an ESXi host needs to be used by a different group or...

View Article

Run a Linux systemd service during shutdown

I recently needed to add a cleanup service that runs at shutdown to a hundred AWS servers. My requirements were: Run the script /usr/local/sbin/ec2-cleanup.sh when a VM shuts down (poweroff or...

View Article

Image may be NSFW.
Clik here to view.

Configure BIOS settings with Ansible and Redfish

If you’re using Ansible and trying to configure the BIOS settings of a bunch of hosts in a data center, take a look at Ansible’s community.general.redfish_config module. The Redfish standard is a...

View Article

Browsing latest articles
Browse All 10 View Live




Latest Images