Junior — Middle
What steps are necessary for correct installation of Ansible on a system?
sobes.tech AI
Answer from AI
The following steps are usually performed for correct installation of Ansible on a system:
- Update the package list and install necessary dependencies (e.g., Python and pip).
- Install Ansible via the system's package manager or using pip.
- Verify the installation by running the command
ansible --version.
Example for Ubuntu:
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository --yes --update ppa:ansible/ansible
sudo apt install ansible
ansible --version
Or via pip:
pip install ansible
ansible --version
After installation, you can configure the inventory and check the connection to hosts.