CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

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.

  1. A. ansible-playbook /home/ansible/web.yml
  2. B. ansible-playbook /home/ansible/web.yml --skip-tags web
  3. C. ansible-playbook /home/ansible/web.yml --skip-tags content — đáp án hiện tại
  4. 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.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề