appsre-ansible: subscribe before upgrading packages

This commit is contained in:
Diaa Sami 2022-08-01 19:38:41 +02:00 committed by Ondřej Budai
parent ec0a1944b4
commit a22b0c229a

View file

@ -20,6 +20,11 @@
state: present
disable_gpg_check: yes
- name: Subscribe
community.general.redhat_subscription:
activationkey: "{{ RH_ACTIVATION_KEY }}"
org_id: "{{ RH_ORG_ID }}"
- name: Upgrade all packages
package:
name: "*"
@ -28,11 +33,6 @@
retries: 5
until: result is success
- name: Subscribe
community.general.redhat_subscription:
activationkey: "{{ RH_ACTIVATION_KEY }}"
org_id: "{{ RH_ORG_ID }}"
- name: Create rpmbuild directory
file:
path: "{{ item }}"