Create ./library
directory in your ansible project:
mkdir ./library
And configure ansible.cfg
:
[defaults]
roles_path = ./library
Add submodule:
git submodule add [email protected]:kressh/ansible-elastic-beats.git library/elastic-beats
Use role:
---
- hosts: infra01.yourserver.io
remote_user: ansible
become: true
roles:
- elastic-beats