Nothing to see here. This is just my vagrant configuration setup to test my ansible playbooks.
You'll need to install:
To test out my ansible playbooks, you'll want to perform the following:
-
Create a configuration file named .vagrant-ansible-cfg (example)
- ROLES_ENABLED - Should point to the project path <project_root>/provisioning/roles.
- ROLES_AVAILABLE - Should point to the path where your playbooks are installed.
-
Run
./enrole.sh <ROLE>
to enable a role (defaults to -h with no <ROLE>) -
Create a playbook.yml file in provisioning directory (example)
-
Make sure to add the role to the playbook.yml
Once you've enabled a role, run the following:
vagrant up
vagrant provision
After you're done testing:
- Run
./disrole.sh <ROLE>
to disable a role (defaults to -h with no <ROLE>)
Note:
- Run
./disrole.sh all
to disable all roles (defaults to no, may change that option later since it's explicit)
Voila. Happy VM'ing.
To test the apt playbook, you'll want to perform the following:
- Ensure you have a configuration file named .vagrant-ansible-cfg
./enrole.sh apt
- Add the apt role to your playbook.yml file
- Don't use this structure for a production setup; follow Ansible best practices
- VM is setup on a host only network @ 88.88.88.88