Câu 21: EX407: Red Hat Certified Specialist in Ansible Automation exam
Consider the following playbook:# playbook name: /home/ansible/web.yml---- hosts: webserversbecome: yestasks:- name: edit file 1lineinfile:path: /var/www/content.hml line: "{{ text }}" tags:- content- name: edit file 2lineinfile: path: /var/www/index.hmlline: "{{ text }}"tags:- web- name: edit file 3lineinfile:path: /…
Nội dung câu hỏi
Consider the following playbook:# playbook name: /home/ansible/web.yml---- hosts: webserversbecome: yestasks:- name: edit file 1lineinfile:path: /var/www/content.hml line: "{{ text }}" tags:- content- name: edit file 2lineinfile: path: /var/www/index.hmlline: "{{ text }}"tags:- web- name: edit file 3lineinfile:path: /var/www/etc.hmlline: "{{ text }}"tags: - content - miscWhich use of the ansible-playbook command on the provided playbook will result in ONLY editing the file /var/www/index.html?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. ansible-playbook /home/ansible/web.yml
- B. ansible-playbook /home/ansible/web.yml --skip-tags web
- C. ansible-playbook /home/ansible/web.yml --skip-tags content — đáp án hiện tại
- D. ansible-playbook /home/ansible/web.yml --tags content
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.