-
Copy
inventory.exampleasinventoryand edit it to fit your needs. -
Copy
group_vars/all.exampleasgroup_vars/alland edit it to fit your needs.Hints for a quick setup
- Search and replace for every terms surrounded by
<>.
- Search and replace for every terms surrounded by
-
Add your public keys in
keysfolder.
-
Check Server fingerprint, accept it (if it match) and exit
ssh USER@SERVER
-
Run root playbook
ansible-playbook playbooks/root_setup.yml -k
This command will run the
root_setupplaybook and ask for your root password.After this playbook succed, you'll no longer be able to run it again, because password authentication is now forbidden.
-
You'll need to use the
setupplaybook with the user you just createdssh USER@SERVER # change your passwordYour password is your username, so you better change it fast, even if you still need your SSH key to connect !
ansible-playbook playbooks/setup.yml -KPrecise your SUDO password.
**Make sure you've runned the Basic Setup first, otherwise
ansible-playbook playbooks/applications/monit.yml -KPrecise your SUDO password.
ansible-playbook playbooks/all.yml -KPrecise your SUDO password.