Create ./library
directory in your ansible project:
mkdir ./library
And configure ansible.cfg
:
[defaults]
roles_path = ./library
Add submodule:
git submodule add git@github.com:kressh/ansible-haproxy.git library/haproxy
Use role:
---
- hosts: yourserver.io
remote_user: ansible
become: true
roles:
- haproxy