Ansible Flashcards
1
Q
When using the apt or yum module to install a package, when would you want to use the ‘state: present’ parameter?
A
Use the ‘state: present’ parameter when you have a specific version to install. If you don’t give it a specific vesion, Ansible grabs the latest according to the package manager and will keep trying to reinstall with the same version you grabbed on subsequent runs.
2
Q
When using the apt or yum module to install a package, when would you want to use the ‘state: latest’ parameter?
A
Only use the ‘state: latest’ parameter when you want to upgrade to the latest version.