How does Monitoring Console (MC) initially identify the server role(s) of a new Splunk Instance?
How does Monitoring Console (MC) initially identify the server role(s) of a new Splunk Instance? A. The MC uses a REST endpoint to query the server. B. Roles are manually assigned within the MC. C. Roles are read from distsearch.conf. D. The MC assigns all possible roles by default.
Which line instructs ansible to install httpd?
Which line instructs ansible to install httpd? A. yum: name=httpd state=installed B. tasks: install httpd C. service: name=httpd state=installed D. name: service=httpd state=installed Explanation: The yum module is an appropriate way to install software
What keyword sets a change condition for a given task?
What keyword sets a change condition for a given task? A. flag_change B. changed_when C. register_change D. change_set
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 Ansible ad-hoc flag is analogous to the become directive?
Which Ansible ad-hoc flag is analogous to the become directive? A. b B. f C. i D. B Explanation: The b flag actually stands for become! They both have Ansible escalate to the become_user.
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 […]
What is the primary difference between the shell and command module?
What is the primary difference between the shell and command module? A. The shell module is for executing shell commands, and the command module is for Ansible internal commands. B. The shell module sets up a shell environment and the command module only runs the provided command. C. The shell module sets a default shell […]
Which of the following attributes specifies how a handler can be notified?
Which of the following attributes specifies how a handler can be notified? (Choose all that apply.) A. name B. service C. listen D. handle Explanation: While using the handler’s name attribute is not encouraged, it does work.
Which line includes a syntax error?
Consider the following playbook. – hosts: webservers become: yes – name: install httpd yum: name: httpd state: latest Which line includes a syntax error? A. become: yes – there is no attribute called become B. yum: – yum should be proceeded with a hyphen C. The file does not end with end-playbook. D. The playbook […]
What command is used to run a playbook?
What command is used to run a playbook? A. ansible-playbook B. ansible C. ansible-p D. playbook Explanation: This command will run a given playbook successfully.