+
Skip to content

andrasmaroy/infra

Repository files navigation

infra

Initial setup

Fill in your SSH public key in setup.sh then copy it to the target host and run as root to setup requirements for Ansible.

On the local machine:

  1. Optionally create a virtualenv
  2. Run pip install -r requirements.txt to install dependencies
  3. Run ansible-galaxy install -r requirements.yml to install ansible dependencies
  4. Fill in the hosts file along the example

Usage

The playbook can be ran like so:

ansible-playbook site.yml

For a dry run the check, diff and verbose parameters can be added:

ansible-playbook -C -D -v site.yml

To run only on a subset of hosts the limit parameter can be added:

ansible-playbook -l SUBSET site.yml

Sponsor this project

 

Contributors 2

  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载