Skip to content

Commit

Permalink
tools/appsre-ansible: retry subscribing rpmbuild machines
Browse files Browse the repository at this point in the history
Also unsubscribe after the build is done.
  • Loading branch information
croissanne committed Aug 21, 2024
1 parent 2f50ce1 commit 9fcbcdb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tools/appsre-ansible/rpmbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
# RHEL mock templates don't work on RHUI, they use the CDN repos
- name: Subscribe
register: result
retries: 5
until: result is success
community.general.redhat_subscription:
activationkey: "{{ RH_ACTIVATION_KEY }}"
org_id: "{{ RH_ORG_ID }}"
Expand Down Expand Up @@ -167,3 +170,10 @@
mode: pull
src: /home/ec2-user/rpmbuild/RPMS
dest: /osbuild-composer/templates/packer/ansible/roles/common/files/rpmbuild/{{ ansible_architecture }}

- name: Unsubscribe
register: result
retries: 5
until: result is success
community.general.redhat_subscription:
state: absent

0 comments on commit 9fcbcdb

Please sign in to comment.