fixing insights ansible playbook

This commit is contained in:
ipvsean
2020-04-23 13:58:12 -04:00
parent 9e44fdc6c1
commit 09e3bbe00c
7 changed files with 28 additions and 8 deletions

View File

@@ -1,12 +1,13 @@
---
- name: install and configure insights agent on all specified nodes
hosts: "{{ HOSTS | default('web') }}"
roles:
- role: RedHatInsights.insights-client
vars:
redhat_portal_username: "{{ insights_user }}"
redhat_portal_password: "{{ insights_password }}"
insights_display_name: "{{ inventory_hostname }}"
tasks:
- include_role:
name: RedHatInsights.insights-client
vars:
redhat_portal_username: "{{ insights_user }}"
redhat_portal_password: "{{ insights_password }}"
insights_display_name: "{{ inventory_hostname }}"
when: ansible_os_family == 'RedHat'
- name: print info to terminal window