~/talk

Automated Tests of Ansible code

Talkat OSCamp 2019 #3 Ansible · on Thursday, 2019-05-16· [testing]
links:none on file
slides:none on file

Ansible roles need integration tests not unit tests so the workflow boots fresh Linux VMs, applies playbooks and verifies state with Ansible. Uses Vagrant and VirtualBox for provisioning, Molecule or simple scripts to orchestrate runs, and CI hooks to test on every git commit. Covers common pitfalls: inventory and asset generation, idempotence failures, network/service timing, and how to keep tests minimal — often three files to customize. Key claim: Arrange: boot fresh VMs (Vagrant, VirtualBox); Act: apply Ansible; Assert: check VM state with Ansible playbook.

AI-written summary · about

  1. 0:00Introduction to testing Ansible
  2. 2:18Why automate Ansible tests
  3. 6:18Configuration directory setup
  4. 9:07Live demo of testing tools
  5. 13:32Integration testing approach
  6. 17:36Automated inventory generation
  7. 21:34Simplifying integration tests
  8. 24:49Testing possibilities with tools
  9. 27:58Final thoughts on integration testing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.