You have a playbook that includes a task to install a package for a service, put a configuration file for that package on the system and restart the service. The playbook is then run twice in a row. What would you expect Ansible to do on the second run?
A) Remove the old package and config file and reinstall and then restart the service.
B) Take no action on the target host.
C) Check if the package is installed, check if the file matches the source file, if not reinstall it; restart the service.
D) Attempt to reinstall the package, copy the file and restart the service.
Correct Answer:
Verified
Q437: You need to create a simple, holistic
Q438: If designing a single playbook to run
Q439: Fill the blanks: _ helps us track
Q440: You want to pass queue messages that
Q441: If a variable is assigned in the
Q443: When specifying multiple variable names and values
Q444: What is the proper (best practice) way
Q445: Ansible provides some methods for controlling how
Q446: Which difference between core modules and extra
Q447: When Ansible's connection state is set to
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents