Chapter 9: Troubleshooting Ansible
Ansible troubleshooting quiz
Twelve questions on finding and fixing problems. Aim for at least nine before moving on to chapter 10.
- Which of these problems does `--syntax-check` find?
- What is wrong with this task?
- A task fails with "value of state must be one of: reloaded, restarted, started, stopped, got: start". What do you change?
- What is the difference between UNREACHABLE and FAILED?
- Which option shows the SSH command and user Ansible uses?
- Which command shows the connection variables Ansible will use for one host?
- A template task writing to /etc fails with "Destination /etc not writable". What is the likely cause?
- What does `--check` do to a `command` task?
- What does `--diff` add to the output?
- Where does Ansible write output when `log_path = ./ansible.log` is set?
- All tasks on the web server report ok, but curl from workstation fails with "No route to host". Where do you look first?
- An ERROR says a handler was not found. What is the fix?