Keeping passwords in Ansible playbooks can be a bad idea, and as such these passwords should be encrypted. Passwords can be encrypted by using the ansible-vault command with the parameter…
Encrypt sensitive passwords in Ansible playbook
Continue reading
0 Comments
Ansible – check if file contains text
This is perhaps an unorthodox way to check if a file contains specific text, but it does seem to be the simplest and mostly commonly recommended on Ansible forums. The…
Continue reading
0 Comments
Specify Ansible Python interpreter on Task/Host
Sometimes setting a global Python Interpreter isn’t ideal as some hosts and tasks may require different interpreters. Specify Python Interpreter on Task level This will select the most appropriate Python…
Continue reading
0 Comments