Add missing environment for a couple of tasks

If564089fb1cb77366fa6d6f8e4086691a4dfcf37 introduced a new parameter,
allowing to disable container validation by setting the
SMDEV_CONTAINER_OFF environment variable.

A couple of places were overlooked, leading to issues, especially in a
satellite-6 enabled environment.

Resolves: rhbz#2102906
Change-Id: I04b6e8ed0c265021697ed574c55fc8b21eb66395
This commit is contained in:
Cédric Jeanneret 2022-07-01 09:49:53 +02:00
parent 9d1a91821a
commit f703e5c494
2 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,8 @@
rescue:
- name: Clean all local subscription data
command: subscription-manager clean
environment:
SMDEV_CONTAINER_OFF: "{{ rhsm_disable_container_check | bool }}"
- import_tasks: register.yml

View File

@ -40,4 +40,6 @@
# the katello certificates and prepare the config in RHSM.
- name: SATELLITE 6 | Execute katello-rhsm-consumer
shell: katello-rhsm-consumer
environment:
SMDEV_CONTAINER_OFF: "{{ rhsm_disable_container_check | bool }}"
when: katello_rpm.changed