Browse Source
Fix Ansible Lint warnings (No such file or directory) (#6581)
pull/6592/head
Barry Melbourne
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
6 deletions
-
contrib/network-storage/heketi/roles/tear-down/tasks/main.yml
-
roles/kubernetes-apps/ansible/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" |
|
|
|
|
|
@ -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 |