From ec83943848591bc3089c346dbe62cadcf43e4d11 Mon Sep 17 00:00:00 2001 From: Patrick Toal Date: Fri, 21 Jun 2019 13:34:47 -0400 Subject: [PATCH] Add Insights / katello agent --- bootstrap.yml | 2 +- roles/toal-common/tasks/main.yml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/bootstrap.yml b/bootstrap.yml index 38181e8..0f5ff62 100644 --- a/bootstrap.yml +++ b/bootstrap.yml @@ -12,4 +12,4 @@ hosts: all become: yes roles: - - role: toal-common + - role: toal-common \ No newline at end of file diff --git a/roles/toal-common/tasks/main.yml b/roles/toal-common/tasks/main.yml index 742efb1..34fabd9 100644 --- a/roles/toal-common/tasks/main.yml +++ b/roles/toal-common/tasks/main.yml @@ -13,4 +13,15 @@ notify: Ovirt Agent Restart when: ansible_virtualization_type == "RHEV" +- name: Install katello-agent on Satellite managed systems + yum: + name: katello-agent + state: present + when: foreman + +- name: Install insights-client on RHEL systems + yum: + name: insights-client + state: present + when: ansible_os_family == "RedHat"