Question 16
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: "{{ text }}" tags: - content - misc Which use of the ansible-playbook command on the provided playbook will result in ONLY editing the file /var/www/index.html?
- ansible-playbook /home/ansible/web.yml
- ansible-playbook /home/ansible/web.yml --skip-tags web
- ansible-playbook /home/ansible/web.yml --skip-tags content
- ansible-playbook /home/ansible/web.yml --tags content