EX407 Exam Question 26

Consider the following playbook.
---
- hosts: web1
become: yes
tasks:
- name: use yum
yum:
name=httpd
state=latest
- name: use service
service:
name=httpd
state=started
enabled=yes
- hosts: media1
become: yes
tasks:
- name: use service
service:
name=mariadb
state=started
when:
- ansible_hostname == "web1"
- name: use service
service:
name=firewalld
state=stopped
What service is started on the host media1?
  • EX407 Exam Question 27

    Where can you find a list of all modules in the Ansible online documentation?
  • EX407 Exam Question 28

    Consider the following playbook.
    ---
    - hosts: local
    become: yes
    tasks:
    - name: create users
    user: name: "{{item}}" with_items:
    - sam
    - john
    - bob
    How many times is the user module invoked?
  • EX407 Exam Question 29

    State whether the following statement is true or false.
    There is a 10 user trial available.
  • EX407 Exam Question 30

    Which of the following are valid ways to populate an Ansible Tower project with your source files? (Choose all that apply.)