▶ ExamTry
Home
Medical
Neet Ug
4
Ssc-Cgl
General_Awareness
5
Mock-Test
5
Devops
Git
3
Ansible
10
Aws
5
Azure
10
Docker
5
Jenkins
5
Kubernetes
5
Terraform
10
⚑ Feedback
Home
ansible
Exam6
Exam6
devops / ansible
• 5 questions
Question 1 of 5
Which Ansible module is used to manage files and directories?
A.
path
B.
directory
C.
file
D.
filesystem
Question 2 of 5
What does the `template` module do in Ansible?
A.
Creates a new role scaffold
B.
Renders a Jinja2 template and copies it to the remote host
C.
Downloads a file from a URL
D.
Synchronises directories between hosts
Question 3 of 5
Which module adds or removes lines in a file?
A.
sed
B.
lineinfile
C.
replace
D.
patch
Question 4 of 5
Which module is used to synchronise large directory trees efficiently?
A.
copy
B.
transfer
C.
synchronize
D.
rsync_module
Question 5 of 5
What does `register` do in an Ansible task?
A.
Saves the task output to a variable
B.
Registers the host in inventory
C.
Marks the task as required
D.
Publishes the result to Ansible Tower
← Back
Submit Answers ✓