-
Copy
inventory.example
asinventory
and edit it to fit your needs. -
Copy
group_vars/all.example
asgroup_vars/all
and 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
keys
folder.
-
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_setup
playbook 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
setup
playbook with the user you just createdssh USER@SERVER # change your password
Your 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 -K
Precise your SUDO password.
**Make sure you've runned the Basic Setup
first, otherwise
ansible-playbook playbooks/applications/monit.yml -K
Precise your SUDO password.
ansible-playbook playbooks/all.yml -K
Precise your SUDO password.