Add workaround with include_task for mitogen (#6312)
parent
935c5093e2
commit
9433fe46c8
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
# include to workaround mitogen issue
|
||||||
|
# https://github.com/dw/mitogen/issues/663
|
||||||
|
|
||||||
|
- name: "Local Volume Provisioner | Ensure base dir {{ delegate_host_base_dir.1 }} is created on {{ delegate_host_base_dir.0 }}"
|
||||||
|
file:
|
||||||
|
path: "{{ local_volume_provisioner_storage_classes[delegate_host_base_dir.1].host_dir }}"
|
||||||
|
state: directory
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "{{ local_volume_provisioner_directory_mode }}"
|
||||||
|
delegate_to: "{{ delegate_host_base_dir.0 }}"
|
|
@ -1,15 +1,10 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Local Volume Provisioner | Ensure base dir is created on all hosts
|
- name: Local Volume Provisioner | Ensure base dir is created on all hosts
|
||||||
file:
|
include_tasks: basedirs.yml
|
||||||
path: "{{ local_volume_provisioner_storage_classes[item.1].host_dir }}"
|
loop_control:
|
||||||
state: directory
|
loop_var: delegate_host_base_dir
|
||||||
owner: root
|
loop: "{{ groups['k8s-cluster'] | product(local_volume_provisioner_storage_classes.keys()) | list }}"
|
||||||
group: root
|
|
||||||
mode: "{{ local_volume_provisioner_directory_mode }}"
|
|
||||||
delegate_to: "{{ item[0] }}"
|
|
||||||
with_nested:
|
|
||||||
- "{{ groups['k8s-cluster'] }}"
|
|
||||||
- "{{ local_volume_provisioner_storage_classes.keys() | list }}"
|
|
||||||
|
|
||||||
- name: Local Volume Provisioner | Create addon dir
|
- name: Local Volume Provisioner | Create addon dir
|
||||||
file:
|
file:
|
||||||
|
|
Loading…
Reference in New Issue