Valid EX374 Dumps shared by EduDump.com for Helping Passing EX374 Exam! EduDump.com now offer the newest EX374 exam dumps, the EduDump.com EX374 exam questions have been updated and answers have been corrected get the newest EduDump.com EX374 dumps with Test Engine here:
Create a playbook to conditionally execute a task based on the presence of a file /tmp/example.
Correct Answer:
- name: Conditional execution hosts: all tasks: - name: Create file if it exists command: touch /tmp/created when: ansible_facts['distribution'] == "Ubuntu" Explanation: Conditional execution using when ensures tasks run only under specific conditions, preventing unnecessary or incorrect operations.