ansible

[How to] get Ansible to load .bash_profile on become_user

Ansible is a very flexible automation tool. It can be used for a wide range of system administration task and also infrastructure administration task. Many a times, for application administrators, there is a requirement to sudo to a different user specific to an application. The application or user may need to pull in information from […]

[How to] get Ansible to load .bash_profile on become_user Read More »

Reboot and wait with Ansible

Sometimes it is required to reboot a Linux server after certain tasks. If you’re using Ansible as the tool to automate your server management, you can write a small role in Ansible to trigger a quick reboot, wait for the server to come back to life and continue with other tasks. The following script works

Reboot and wait with Ansible Read More »

Scroll to Top