check-install missing packages (#63)

* check-install missing packages
* updated subcription manager installation
* move subscription manager install up
This commit is contained in:
Hicham Mourad
2023-02-13 12:19:50 -05:00
committed by GitHub
parent 242bbbaf78
commit 3a2f3f2daa
2 changed files with 12 additions and 0 deletions

View File

@@ -17,6 +17,12 @@
hostname:
name: "{{ inventory_hostname | regex_replace('_','-')}}"
# Install subscription-manager if it's not there
- name: Install subscription-manager
ansible.builtin.yum:
name: subscription-manager
state: present
- name: remove rhui client packages
yum:
name: rh-amazon-rhui-client*

View File

@@ -5,6 +5,12 @@
report_server: node1
tasks:
# Install yum-utils if it's not there
- name: Install yum-utils
ansible.builtin.yum:
name: yum-utils
state: latest
- include_role:
name: demo.patching.patch_linux