Quiz: Major Concepts in Ansible
Test your knowledge of some major concepts of Ansible like modules, tasks, playbooks, roles, and handlers.
1
Which code block defines an Ansible task that uses the apt
module to install the postgresql-11
package on a managed node?
A)
- name: Install Postgres11
apt:
name: postgresql-11
state: present
B)
- name: Install Postgres11
apt:
name: postgresql-11
state: latest
C)
- name: Install Postgres11
apt:
name: postgresql-11
state: installed
D)
- name: Install Postgres11
apt-install:
name: postgresql-11
state: present
Question 1 of 60 attempted
Get hands-on with 1400+ tech skills courses.