项目作者: EPSIBordeaux

项目描述 :
Ansible deployment
高级语言:
项目地址: git://github.com/EPSIBordeaux/ansible-deployment.git
创建时间: 2018-09-18T12:25:22Z
项目社区:https://github.com/EPSIBordeaux/ansible-deployment

开源协议:

下载


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

    1. ssh USER@SERVER
  • Run root playbook

    1. 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

    1. ssh USER@SERVER
    2. # 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

  1. ansible-playbook playbooks/setup.yml -K

Precise your SUDO password.

Install an application

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

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

Precise your SUDO password.

Install all

  1. ansible-playbook playbooks/all.yml -K

Precise your SUDO password.