Import fedora-messaging-utils role

Importing the role rather than listing it in the playbook lets its tasks
have the tags used in the importing role, i.e. should ensure they are
run when the things that need simple_message_to_bus are installed.

Additionally, don't attempt to install it manually from
web-data-analysis (it isn't found because it lives in a different role).

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2021-08-12 12:50:10 +02:00 committed by asaleh
parent cce1067c31
commit 5e09dce82d
3 changed files with 7 additions and 3 deletions

View file

@ -23,7 +23,6 @@
- sudo
- awstats
- web-data-analysis
- fedora-messaging-utils
- role: keytab/service
owner_user: apache
owner_group: apache

View file

@ -10,6 +10,11 @@
tags:
- awstats
- name: ensure messaging script is installed
import_role: name=fedora-messaging-utils
tags:
- awstats
- name: awstats proxy merge script (log01)
copy: src=combineHttpLogs.sh dest=/usr/local/bin/ mode=0755
tags:

View file

@ -140,8 +140,8 @@
tags:
- web-data
- name: install messaging script for our improvized tracing
copy: src=simple_message_to_bus dest=/usr/local/bin/ mode=0755
- name: ensure messaging script is installed
import_role: name=fedora-messaging-utils
tags:
- web-data
- cron