List of questions
Related questions
Question 424 - DOP-C01 discussion
If designing a single playbook to run across multiple Linux distributions that have distribution specific commands, what would be the best method to allow a successful run?
A.
Enable fact gathering and use the `when' conditional to match the distribution to the task.
B.
This is not possible, a separate playbook for each target Linux distribution is required.
C.
Use `ignore_errors: true' in the tasks.
D.
Use the `shell' module to write your own checks for each command that is ran.
Your answer:
0 comments
Sorted by
Leave a comment first