# Using Ansible - mCaptcha

# Using Ansible

Deploy mCaptcha software using Ansible playbooks

Ansible playbooks to install mCaptcha are available here.

## Instructions#

### Installation#

1. Clone the repository:

    1git clone https://git.batsense.net/mCaptcha/iac && cd iac

2. Create inventory file. You should have SSH access to the remote machine, and the user must have `sudo` privileges. Example inventory file:

       1[mcaptcha_hosts]
       2"mcaptcha_hosts"
       3<node name> ansible_host=<node IP> ansible_user=<remote username>

   It is important that the group name be `mcaptcha_hosts`.

3. Configure installation by editing ansible/vars/mcaptcha/vars.yml. Most parameters have defaults, and the required parameters are annotated.

4. Run playbook:

    1	ansible-playbook -i path/to/inventory-file -f 10 ./ansible/mcaptcha.yml

### Update#

1. Pull changes from Git repository
2. Rerun playbook

Edit this page on git.batsense.net