Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 699 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 699 Bytes

Advanced Ansible Project with Molecule Testing

Setup and Pre-requisites

  1. Install Ansible and Molecule.
pip install ansible molecule docker
  1. Clone this repository.
git clone https://github.com/your-github/advanced-ansible-molecule.git

How to Run

  1. Run the Ansible playbook.
ansible-playbook webserver-playbook.yml
  1. To test the role using Molecule, navigate to the role directory.
cd roles/webserver
  1. Run the Molecule tests.
molecule test

Important Notes

  • Make sure to replace the IP address in the inventory.ini file with the IP of your test server.
  • The Molecule tests will run on a Docker container.