Skip to Content
Practical Ansible 2
book

Practical Ansible 2

by Daniel Oh, James Freeman, Fabio Alessandro Locati
June 2020
Intermediate to advanced
410 pages
9h 52m
English
Packt Publishing
Content preview from Practical Ansible 2

Questions

  1. Which of the following ansible-doc commands can you use to list the names of all the cache plugins?

A) ansible-doc -a cache -l

B) ansible-doc cache -l

C) ansible-doc -a cache

D) ansible-doc -t cache -l

E) ansible-doc cache

  1. Which class do you need to add to your lookup plugin's code to include the bulk of the plugin code, including run(), the items loop, try, and except?

A) LookupModule

B) RunModule

C) StartModule

D) InitModule

E) LoadModule

  1. True or false – in order to create custom plugins using Python, you need to install Python with the relevant dependencies on your OS:

A) True

B) False

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Ansible - Third Edition

Mastering Ansible - Third Edition

James Freeman, Jesse Keating
Security Automation with Ansible 2

Security Automation with Ansible 2

Akash Mahajan, MADHU AKULA

Publisher Resources

ISBN: 9781789807462Supplemental Content