Skip to content

Some tutorials and code example on testing Ansible Codes (Molecule + Testinfra)

License

Notifications You must be signed in to change notification settings

hadi2f244/testing_ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing Ansible

Testing Ansible code example. Follow these medium posts:

Requirements

  • Ansible (Tested on 2.12.2)

  • Docker (Tested on 20.10.10)

  • Vagrant (Tested on 2.2.6)

  • Molecule (Tested on 3.5.2):

    pip install 'molecule[docker]' ansible-lint molecule-vagrant

Test Scenario

  1. molecule create -s docker
  2. molecule lint -s docker
  3. molecule converge -s docker
  4. molecule verify -s docker
  5. molecule idempotence -s docker
  6. molecule destroy -s docker

OR use molecule test -s docker instead.

About

Some tutorials and code example on testing Ansible Codes (Molecule + Testinfra)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published