diff --git a/tools/appsre-ansible/rpmbuild.yml b/tools/appsre-ansible/rpmbuild.yml index fe3f4643f..eb9139a3b 100644 --- a/tools/appsre-ansible/rpmbuild.yml +++ b/tools/appsre-ansible/rpmbuild.yml @@ -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 }}"