Ansible deployment
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
group_vars
keys
playbooks
roles
.gitignore
README.md
ansible.cfg
inventory.example

README.md

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.