From 4a8fd94a5f9ef3c3fd13299639015dbcceab8eb2 Mon Sep 17 00:00:00 2001
From: peterw <12556909+pedro-peter@users.noreply.github.com>
Date: Wed, 21 Jun 2023 14:23:40 +0100
Subject: [PATCH] add growpart azure enabled (#10241)

---
 roles/kubernetes/preinstall/defaults/main.yml | 3 +++
 roles/kubernetes/preinstall/tasks/main.yml    | 1 +
 2 files changed, 4 insertions(+)

diff --git a/roles/kubernetes/preinstall/defaults/main.yml b/roles/kubernetes/preinstall/defaults/main.yml
index 8839ec466..01ce93f0c 100644
--- a/roles/kubernetes/preinstall/defaults/main.yml
+++ b/roles/kubernetes/preinstall/defaults/main.yml
@@ -143,3 +143,6 @@ debian_os_family_extensions:
 
 # Sets DNSStubListener=no, useful if you get "0.0.0.0:53: bind: address already in use"
 systemd_resolved_disable_stub_listener: "{{ ansible_os_family in ['Flatcar', 'Flatcar Container Linux by Kinvolk'] }}"
+
+# Enable 0120-growpart-azure-centos-7 tasks
+growpart_azure_enabled: true
diff --git a/roles/kubernetes/preinstall/tasks/main.yml b/roles/kubernetes/preinstall/tasks/main.yml
index 8e12636ec..133c45d9b 100644
--- a/roles/kubernetes/preinstall/tasks/main.yml
+++ b/roles/kubernetes/preinstall/tasks/main.yml
@@ -120,6 +120,7 @@
     - not dns_late
     - azure_check.stat.exists
     - ansible_os_family == "RedHat"
+    - growpart_azure_enabled
   tags:
     - bootstrap-os
 
-- 
GitLab