Which of the following are valid flags for the ansible-playbook command? (Choose all that apply.)
Consider the following play excerpt:- name: deploy app configtemplate:src: app.xml.j2dest: /etc/app.xmlnotify:- restart memcached- restart apache- name: deploy httpd configtemplate:src: httpd.conf.j2dest: /etc/httpd/conf/httpd.confnotify:- restart apache- name: deploy httpd configtemplate:src: site.conf.j2dest: /etc/httpd/conf/site.confnotify:- restart apachePresuming all of the listed tasks in the play change the files they act on and the handler is correctly defined in another file, how many times is the "restart apache" handler ran?
Consider the following playbook.---- hosts: web1become: yestasks:- name: use yumyum:name=httpdstate=latest- name: use serviceservice:name=httpdstate=startedenabled=yes- hosts: media1become: yestasks:- name: use serviceservice:name=mariadbstate=startedwhen:- ansible_hostname == "web1"- name: use serviceservice:name=firewalldstate=stoppedWhat service is started on the host media1?
What module is used to deploy a template?
What is a typical use case for an Ansible Template?
Examine the following inventory excerpt file named /home/user/ansible/inventory. [dbservers] db1.example.comWhich of the following files does Ansible check for variables related to that inventory? (Choose all that apply.)