Chapter 13, Hardening Your Servers Using Ansible and OpenSCAP

  1. What effect does adding > to a multiline variable have?

The variable will be rendered as a single line when Ansible inserts it into the playbook run

  1. True or false: OpenSCAP is certified by NIST.

True

  1. Why are we telling Ansible to continue if the scan command is marked as failed?

Because the task will always fail if it doesn't get a 100% score

  1. Explain why we are using tags for certain roles.

So that we can run certain parts of the playbook when we use the --tags flag

  1. True or false: We use the copy command to copy HTML reports from the remote host to the Ansible controller.

False

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.