Asked by: Margarette Ameixoeiraasked in category: General Last Updated: 10th March, 2020
What is become in Ansible playbook?
Click to see full answer.
Considering this, what is a playbook in Ansible?
An Ansible playbook is an organized unit of scripts that defines work for a server configuration managed by the automation tool Ansible. Ansible is a configuration management tool that automates the configuration of multiple servers by the use of Ansible playbooks.
Furthermore, how do I use Ansible playbook? Run Your First Command and Playbook. Put the concepts you learned to work with this quick tutorial. Install Ansible, execute a network configuration command manually, execute the same command with Ansible, then create a playbook so you can execute the command any time on multiple network devices.
In respect to this, what does become mean in Ansible?
Become. Ansible allows you to 'become' another user, different from the user that logged into the machine (remote user). Before 1.9 Ansible mostly allowed the use of sudo and a limited use of su to allow a login/remote user to become a different user and execute tasks, create resources with the 2nd user's permissions.
How do I become Ansible root?
Going over the command:
- -i ./hosts - Set the inventory file, the one named hosts.
- -b - "become", tell Ansible to become another user to run the command.
- --become-user=root - Run the following commands as user "root" (e.g. use "sudo" with the command)