appsre-ansible: subscribe before upgrading packages
This commit is contained in:
parent
ec0a1944b4
commit
a22b0c229a
1 changed files with 5 additions and 5 deletions
|
|
@ -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 }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue