Chapter 5, Deploying WordPress
- 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
- True or false: Using
backref
in thelineinfile
module makes sure that no changes are applied if the regular expression is not matched.
True
- 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.
- Which module do we use to define variables as part of a playbook run?
The set_fact
module
- Which argument do we pass to the
shell
module to have the command we want to run executed in a directory of our choosing?
The argument is chdir
- True or false:Setting MariaDB to bind to
127.0.0.1
will allow us to access it externally.
False