2. Allan Denot
1 year experience with Ansible
2 years experience with AWS
DevOps Engineer at cammy.com (previously Suncorp)
Co-founder of spikenode.com
@denot allandenot.com
6. The ProblemTEAMB
App is not working. Was
the server configured?
TEAMA
Yes... Probably...
Oh wait, our
playbook failed
Then why apache is
not installed?
8. s
e
r
v
e
r
SolutionTEAMB
asserts the state of the servers before deploying and
only deploys if passes
Useful when different teams are in
charged of different layers of
configuration.
operational system
web server
database
application
9. Testing with custom module
Example playbook:
- name: Test Setup Webservers
hosts: all
tasks:
- assert_file: name=/apps should_be=directory
- assert_owner: name=/apps should_be=appuser
- assert_tcp: name=localhost:80 should_be=open with_timeout=3