Skip to content

art22m/jago-rent-gadget

Repository files navigation

GadgetRent service by Jago team

Runbook

Ansible

  • Create venv and install ansbile and requirements

    cd ansible
    python3 -m venv ansible-env
    source ansible-env/bin/activate
    python3 -m pip install --upgrade pip
    python3 -m pip install ansible
    python3 -m pip install yandexcloud
  • Check everything installed correctly

    which ansible
    python3 -m pip list | grep ansible
  • Install necessary roles

    ansible-galaxy role install geerlingguy.docker
    ansible-galaxy install nginxinc.nginx 
  • Check inventories are identified correctly

    ansible-inventory --list
  • Install docker on hosts

    ansible-playbook playbooks/dev/docker/main.yml
  • Install nginx on hosts

    ansible-playbook playbooks/dev/nginx/main.yml
  • Deactivate venv

    deactivate
  • Next time you can just activate this saved venv with no need to create it and install requirements:

    cd ansible
    source ansible-env/bin/activate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •