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