On 2/5/20 7:21 AM, Nicolas Quiniou-Briand wrote:
Hello Nicolas,
I tried but I checked the log file and I don't see my own custom role
being loaded.
I made some attempts, none successful and currently I've this:
I've copied the content of debops site.yml in my
ansible/playbooks/site.yml, then I've added my custom roles like this
- import_playbook: app.yml
#
# Custom roles
- include: mattermost_mariadb.yml
- include: mattermost.yml
In my inventory.yml I have:
debops_service_mattermost:
hosts:
media:
This is my ansible/playbooks/mattermost.yml
---
- name: Install and manage MatterMost Service
hosts: ["debops_service_mattermost"]
become: True
environment: "{{ inventory__environment | d({})
| combine(inventory__group_environment | d({}))
| combine(inventory__host_environment | d({})) }}"
roles:
- role: secret
- role: mattermost
tags: ["role::mattermost", "skip::mattermost"]
and my custom role is in ansible/roles/mattermost
If I run "debops service/mattermost -l media" it works. If I run "debops
-l media" it doesn't.
Any tip?
Thanks
Demetri