Ansible

Ansible

This section demonstrates a few Ansible operations with Ubuntu servers in a VMware ESXi environment.

Infrastructure and user accounts

NodeTypeRoleUserPassword
uvm0virtual machineUbuntu 24 LTScontrol nodeaadminapass00
esxihostphysical serverWMwae ESXi 6.5managed nodeesxiadminpassESXi
uvm26virtual machineUbuntu 24 LTSmanaged nodeaadminapass26
uvm27virtual machineUbuntu 24 LTSmanaged nodeaadminapass27

From the point of view of Ansible, the nodes in this documentation were either a physical server or virtual machines.

An automation administrator performed these operations with the help of user accounts called aadmin. These accounts did not have to have the same names. Moreover, they needed elevated privileges only on the managed nodes.

Although uvm0 resided on esxihost, it could manage it via Ansible.

This documentation demonstrates the use of Ansible playbooks. It does not address Ansible roles.

Networking

The aadmin@uvm0 was able to ping any of the managed nodes. In this particular case, all nodes belonged to the same local area network.