From 8e2bae0f2a56bc210bc3d6df1194e9d8c801aaec Mon Sep 17 00:00:00 2001 From: Barry Melbourne <9964974+bmelbourne@users.noreply.github.com> Date: Thu, 27 Aug 2020 07:19:10 +0100 Subject: [PATCH] Fix Ansible Lint warnings (No such file or directory) (#6581) --- .../heketi/roles/tear-down/tasks/main.yml | 2 +- roles/kubernetes-apps/ansible/tasks/main.yml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contrib/network-storage/heketi/roles/tear-down/tasks/main.yml b/contrib/network-storage/heketi/roles/tear-down/tasks/main.yml index 18c11a731..baf25fcb7 100644 --- a/contrib/network-storage/heketi/roles/tear-down/tasks/main.yml +++ b/contrib/network-storage/heketi/roles/tear-down/tasks/main.yml @@ -9,7 +9,7 @@ command: "{{ bin_dir }}/kubectl delete all,service,jobs,deployment,secret --selector=\"glusterfs=heketi-deployment\"" ignore_errors: true - name: "Tear down bootstrap." - include_tasks: "../provision/tasks/bootstrap/tear-down.yml" + include_tasks: "../../provision/tasks/bootstrap/tear-down.yml" - name: "Ensure there is nothing left over." # noqa 301 command: "{{ bin_dir }}/kubectl get all,service,jobs,deployment,secret --selector=\"glusterfs=heketi-pod\" -o=json" register: "heketi_result" diff --git a/roles/kubernetes-apps/ansible/tasks/main.yml b/roles/kubernetes-apps/ansible/tasks/main.yml index 63c4351de..25ffa7270 100644 --- a/roles/kubernetes-apps/ansible/tasks/main.yml +++ b/roles/kubernetes-apps/ansible/tasks/main.yml @@ -12,7 +12,7 @@ when: inventory_hostname == groups['kube-master'][0] - name: Kubernetes Apps | Cleanup DNS - import_tasks: tasks/cleanup_dns.yml + import_tasks: cleanup_dns.yml when: - inventory_hostname == groups['kube-master'][0] tags: @@ -21,7 +21,7 @@ - nodelocaldns - name: Kubernetes Apps | CoreDNS - import_tasks: "tasks/coredns.yml" + import_tasks: "coredns.yml" when: - dns_mode in ['coredns', 'coredns_dual'] - inventory_hostname == groups['kube-master'][0] @@ -29,7 +29,7 @@ - coredns - name: Kubernetes Apps | nodelocalDNS - import_tasks: "tasks/nodelocaldns.yml" + import_tasks: "nodelocaldns.yml" when: - enable_nodelocaldns - inventory_hostname == groups['kube-master'] | first @@ -63,13 +63,13 @@ label: "{{ item.item.file }}" - name: Kubernetes Apps | Netchecker - import_tasks: tasks/netchecker.yml + import_tasks: netchecker.yml when: deploy_netchecker tags: - netchecker - name: Kubernetes Apps | Dashboard - import_tasks: tasks/dashboard.yml + import_tasks: dashboard.yml when: dashboard_enabled tags: - dashboard