2019-09-21 17:42:08 +00:00
|
|
|
# Fuz Playbooks
|
|
|
|
|
2019-09-24 09:19:03 +00:00
|
|
|
Playbooks for (relatively) easy sysadmin!
|
|
|
|
|
|
|
|
## With Vagrant
|
2019-09-24 09:32:07 +00:00
|
|
|
1. Install Vagrant
|
|
|
|
2. `vagrant up`
|
|
|
|
3. Install ansible:
|
|
|
|
```bash
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install software-properties-common
|
|
|
|
sudo apt-add-repository --yes --update ppa:ansible/ansible
|
|
|
|
sudo apt install ansible
|
|
|
|
```
|
|
|
|
<!-- 3. Install the roles: `ansible-galaxy install -r requirements.yml` -->
|
2019-09-24 09:19:03 +00:00
|
|
|
4. Launch the playbook: `ansible-playbook setup.yml`
|
|
|
|
|
|
|
|
## With a real server
|
|
|
|
1. Edit the file `hosts.ini`
|
2019-09-24 09:32:07 +00:00
|
|
|
2. Install ansible:
|
|
|
|
```bash
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install software-properties-common
|
|
|
|
sudo apt-add-repository --yes --update ppa:ansible/ansible
|
|
|
|
sudo apt install ansible
|
|
|
|
```
|
|
|
|
<!-- 3. Install the roles: `ansible-galaxy install -r requirements.yml` -->
|
|
|
|
3. Launch the playbook: `ansible-playbook setup.yml`
|