Chapter 5, Deploying WordPress

  1. Which fact gathered during the setup module execution can we use to tell our playbook how many processors our target host has?

The fact is ansible_processor_count

  1. True or false: Using backref in the lineinfile module makes sure that no changes are applied if the regular expression is not matched.

True

  1. Explain why we would want to build logic into the playbook to check whether WordPress is already installed.

So that we can skip the task that downloads and installs WordPress the next time the playbook is run.

  1. Which module do we use to define variables as part of a playbook run?

The set_fact module

  1. Which argument do we pass to the shell module to have the command we want to run executed in a directory ...

Get Learn Ansible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.