Skip to content

Latest commit

 

History

History
65 lines (40 loc) · 1.36 KB

README.md

File metadata and controls

65 lines (40 loc) · 1.36 KB

Ansible server setup

Usage

  1. Copy inventory.example as inventory and edit it to fit your needs.

  2. Copy group_vars/all.example as group_vars/all and edit it to fit your needs.

    Hints for a quick setup

    • Search and replace for every terms surrounded by <>.
  3. Add your public keys in keys folder.

Root Setup

  • 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 created

    ssh 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 !

Basic Setup

ansible-playbook playbooks/setup.yml -K

Precise your SUDO password.

Install an application

**Make sure you've runned the Basic Setup first, otherwise

ansible-playbook playbooks/applications/monit.yml -K

Precise your SUDO password.

Install all

ansible-playbook playbooks/all.yml -K

Precise your SUDO password.