PrepAway - Latest Free Exam Questions & Answers

Category: EX407

Exam EX407: Red Hat Certified Specialist in Ansible Automation

Which use of the ansible-playbook command on the provided playbook will result in ONLY editing the file /var/w

Consider the following playbook: # playbook name: /home/ansible/web.yml — – hosts: webservers become: yes tasks: – name: edit file 1 lineinfile: path: /var/www/content.hml line: “{{ text }}” tags: – content – name: edit file 2 lineinfile: path: /var/www/index.hml line: “{{ text }}” tags: – web – name: edit file 3 lineinfile: path: /var/www/etc.hml line: “{{ […]

Which command is the correct way to run the playbook /home/ansible/Buildwww.yml using the inventory file /home

Which command is the correct way to run the playbook /home/ansible/Buildwww.yml using the inventory file /home/ansible/inventory, assuming your present working directory is /home/ansible? A. ansible -i inventory Build.yml B. ansible -i inventory -p Buildwww.yml C. ansible-playbook -i inventory -p Buildwww.yml D. ansible-playbook -i inventory Buildwww.yml Explanation: This command is the correct way to run the […]


Page 1 of 212