Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Ansible, 4th Edition - Fourth Edition

You're reading from  Mastering Ansible, 4th Edition - Fourth Edition

Product type Book
Published in Dec 2021
Publisher Packt
ISBN-13 9781801818780
Pages 540 pages
Edition 4th Edition
Languages
Authors (2):
James Freeman James Freeman
Profile icon James Freeman
Jesse Keating Jesse Keating
Profile icon Jesse Keating
View More author details

Table of Contents (18) Chapters

Preface 1. Section 1: Ansible Overview and Fundamentals
2. Chapter 1: The System Architecture and Design of Ansible 3. Chapter 2: Migrating from Earlier Ansible Versions 4. Chapter 3: Protecting Your Secrets with Ansible 5. Chapter 4: Ansible and Windows – Not Just for Linux 6. Chapter 5: Infrastructure Management for Enterprises with AWX 7. Section 2: Writing and Troubleshooting Ansible Playbooks
8. Chapter 6: Unlocking the Power of Jinja2 Templates 9. Chapter 7: Controlling Task Conditions 10. Chapter 8: Composing Reusable Ansible Content with Roles 11. Chapter 9: Troubleshooting Ansible 12. Chapter 10: Extending Ansible 13. Section 3: Orchestration with Ansible
14. Chapter 11: Minimizing Downtime with Rolling Deployments 15. Chapter 12: Infrastructure Provisioning 16. Chapter 13: Network Automation 17. Other Books You May Enjoy

Questions

  1. By default, Ansible will stop processing further tasks for a given host after the first failure occurs:

    a) True

    b) False

  2. The ansible.builtin.command and ansible.builtin.shell modules' default behavior is to only ever give a task status of changed or failed:

    a) True

    b) False

  3. You can store the results from a task using which Ansible keyword?

    a) store:

    b) variable:

    c) register:

    d) save:

  4. Which of the following directives can be used to change the failure condition of a task?

    a) error_if:

    b) failed_if:

    c) error_when:

    d) failed_when:

  5. You can combine multiple conditional statements in Ansible using which of the following?

    a) and

    b) or

    c) The YAML list format (which works the same as a logical AND)

    d) All of the above

  6. Changes can be suppressed with which of the following?

    a) suppress_changed: true

    b) changed_when: false

    c) changed: false

    d) failed_when: false

  7. In a block section, all tasks are executed in order on all hosts:

    a) Until the first error occurs

    b) Regardless...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}