From 929f1fbd71ae3c0a90cd3e732d09b71a81fb89e1 Mon Sep 17 00:00:00 2001 From: Sebastien Chabrolles Date: Tue, 11 Apr 2023 13:20:38 +0200 Subject: [PATCH] add internet variable --- tasks/main.yml | 11 ++++++++--- vars/main.yml | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index e470ac04..3ff3e785 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -30,18 +30,21 @@ package: name: "{{ packages }}" state: present + when: internet - name: Install packages for DHCP/PXE install package: name: "{{ dhcppkgs }}" state: present - when: not staticips + when: + - not staticips + - internet - name: Install additional package for Intel platforms package: name: "{{ syslinuxpkgs }}" state: present - when: not staticips and not ppc64le + when: not staticips and not ppc64le and internet - name: Remove existing config files import_tasks: remove_old_config_files.yaml @@ -559,7 +562,9 @@ state: absent - name: Install and configure helm - when: helm_source is defined + when: + - helm_source is defined + - internet block: - name: Create helm source directory file: diff --git a/vars/main.yml b/vars/main.yml index f8da4f46..6a5250c0 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -28,3 +28,4 @@ setup_registry: registry_user: "admin" registry_password: "admin" machineconfig_path: ../machineconfig +internet: true