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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly