From b7fd462944362c7a6cbfce6099c0186fe8dbefa0 Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Wed, 20 Mar 2019 11:29:42 -0700 Subject: [PATCH] Fix support for ansible 2.7.9 (#4375) --- .../local_volume_provisioner/tasks/main.yml | 4 ++-- roles/kubernetes/preinstall/tasks/0050-create_directories.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/kubernetes-apps/external_provisioner/local_volume_provisioner/tasks/main.yml b/roles/kubernetes-apps/external_provisioner/local_volume_provisioner/tasks/main.yml index a623bd0d0..6b970317e 100644 --- a/roles/kubernetes-apps/external_provisioner/local_volume_provisioner/tasks/main.yml +++ b/roles/kubernetes-apps/external_provisioner/local_volume_provisioner/tasks/main.yml @@ -9,7 +9,7 @@ delegate_to: "{{ item[0] }}" with_nested: - "{{ groups['k8s-cluster'] }}" - - "{{ local_volume_provisioner_storage_classes.keys() }}" + - "{{ local_volume_provisioner_storage_classes.keys() | list}}" - name: Local Volume Provisioner | Create addon dir file: @@ -59,4 +59,4 @@ with_items: "{{ local_volume_provisioner_manifests.results }}" when: inventory_hostname == groups['kube-master'][0] loop_control: - label: "{{ item.item.file }}" \ No newline at end of file + label: "{{ item.item.file }}" diff --git a/roles/kubernetes/preinstall/tasks/0050-create_directories.yml b/roles/kubernetes/preinstall/tasks/0050-create_directories.yml index e507f916f..7f48ec42c 100644 --- a/roles/kubernetes/preinstall/tasks/0050-create_directories.yml +++ b/roles/kubernetes/preinstall/tasks/0050-create_directories.yml @@ -52,7 +52,7 @@ owner: root group: root mode: 0700 - with_items: "{{ local_volume_provisioner_storage_classes.keys() }}" + with_items: "{{ local_volume_provisioner_storage_classes.keys() | list }}" when: - inventory_hostname in groups['k8s-cluster'] - local_volume_provisioner_enabled