diff --git a/roles/bootstrap-os/defaults/main.yml b/roles/bootstrap-os/defaults/main.yml index 02db10f99..13e8e718c 100644 --- a/roles/bootstrap-os/defaults/main.yml +++ b/roles/bootstrap-os/defaults/main.yml @@ -2,6 +2,8 @@ ## CentOS/RHEL/AlmaLinux specific variables # Use the fastestmirror yum plugin centos_fastestmirror_enabled: false +# Timeout (in seconds) for checking RHEL subscription status +rh_subscription_check_timeout: 180 ## Flatcar Container Linux specific variables # Disable locksmithd or leave it in its current state diff --git a/roles/bootstrap-os/tasks/rhel.yml b/roles/bootstrap-os/tasks/rhel.yml index 2c8bef62e..ad2c4e962 100644 --- a/roles/bootstrap-os/tasks/rhel.yml +++ b/roles/bootstrap-os/tasks/rhel.yml @@ -28,6 +28,7 @@ register: rh_subscription_status changed_when: "rh_subscription_status.rc != 0" ignore_errors: true # noqa ignore-errors + timeout: "{{ rh_subscription_check_timeout }}" become: true - name: RHEL subscription Organization ID/Activation Key registration