ansible-public/README.md

28 lines
808 B
Markdown
Raw Normal View History

2016-12-21 15:39:50 +01:00
# Ansible-public
```
$ ansible-playbook playbooks/evolinux.yml -i inventory/hosts -K
```
2016-12-21 16:05:03 +01:00
2016-12-21 16:06:41 +01:00
## Conventions
Our conventions for writting Ansible roles, playbooks… are in the CONVENTIONS.md file.
2016-12-21 16:05:03 +01:00
## Tests
It's possible to use the `vagrant.yml` playbook locally, to test and debug the roles on a virtual machine.
It works with a Virtualbox VM, driven by Vagrant.
To install Virtualbox and Vagrant (version 1.8 is not available on Debian repositories yet) :
```
$ apt install virtualbox
$ curl -O https://releases.hashicorp.com/vagrant/1.8.5/vagrant_1.8.5_x86_64.deb /tmp/
$ dpkg -i /tmp /vagrant_1.8.5_x86_64.deb
```
To bring the VM up and run the playbook, simply run `$ vagrant up` from the root of this repository.
To destroy the VM and start again from scratch : `$ vagrant destroy && vagrant up`.