diff --git a/linux/ec2_register.yml b/linux/ec2_register.yml index 7ce0d4f..d48705c 100644 --- a/linux/ec2_register.yml +++ b/linux/ec2_register.yml @@ -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* diff --git a/linux/patching.yml b/linux/patching.yml index bee3daa..582f33e 100644 --- a/linux/patching.yml +++ b/linux/patching.yml @@ -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