15.10.2020 · Building up on @gary lopez answer to add security and performance. First you will need to get an actual list of all packages you want to see installed on your final machine, including the default ones that come with the system. I assume that list will be in var yum_rpm. Once you have that, the next step is to get the list of currently installed packages on the …
08.09.2020 · Ansible can run with just a configuration file written in YAML, but if you want to expand your playbook later, you can control Ansible by how you lay out your directories and files. For now, just create a directory called install_packages or similar: $ mkdir ~ / install_packages
Specifies an alternative installroot, relative to which all packages will be installed. list. string. Package name to run the equivalent of yum list --show- ...
16.08.2021 · $ ansible-playbook -u tux -b install_packages.yml You can put it on a schedule with cron, making sure the desired package gets installed and reinstalled if someone removes it. Install several packages What if you want to install a …
Installing Software and Other Packages - Ansible Tips and Tricks Ansible uses separate modules depending on OS, which means that writing a play that can install to multiple OSes requires lots of when: to check OS before install. Instead you can use gathered facts to automatically decide.
Ansible uses separate modules depending on OS, which means that writing a play ... You can use Ansible's pseudo looping method to install multiple packages