Note: the ” ” around the keyserver URL are important.Īround the “echo deb” it is important to use ” ” rather than ‘ ‘. $ sudo apt update & sudo apt install ansible $ echo "deb $UBUNTU_CODENAME main" | sudo tee /etc/apt//ansible.list $ wget -O- "" | sudo gpg -dearmour -o /usr/share/keyrings/ansible-archive-keyring.gpg based on the table above (we use jammy in this example). Run the following commands to add the repository and install Ansible. In the following example, we assume that you have wget and gpg already installed ( sudo apt install wget gpg). To get a more recent version, Debian users can use the Ubuntu PPA according to the following table: While Ansible is available from the main Debian repository, it can be out of date. Adjust your script as needed.įile any issues in the PPA’s issue tracker. Also, be aware that only newer distributions (that is, 18.04, 18.10, and later) have a -u or -update flag. You may want to use apt-get rather than apt in older versions. On older Ubuntu distributions, “software-properties-common” is called “python-software-properties”. Controlling how Ansible behaves: precedence rules.Virtualization and Containerization Guides.Protecting sensitive data with Ansible vault.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |