Skip to content
Snippets Groups Projects
Commit f7447837 authored by Bogdan Dobrelya's avatar Bogdan Dobrelya
Browse files

Rename CoreOS fact

parent 6d54d9f4
No related branches found
No related tags found
No related merge requests found
...@@ -3,14 +3,14 @@ ...@@ -3,14 +3,14 @@
tasks: tasks:
- name: Force binaries directory for CoreOS - name: Force binaries directory for Container Linux by CoreOS
set_fact: set_fact:
bin_dir: "/opt/bin" bin_dir: "/opt/bin"
when: ansible_os_family == "CoreOS" when: ansible_os_family == "Container Linux by CoreOS"
- set_fact: - set_fact:
bin_dir: "/usr/local/bin" bin_dir: "/usr/local/bin"
when: ansible_os_family != "CoreOS" when: ansible_os_family != "Container Linux by CoreOS"
- name: Get pod names - name: Get pod names
shell: "{{bin_dir}}/kubectl get pods -o json" shell: "{{bin_dir}}/kubectl get pods -o json"
......
...@@ -12,14 +12,14 @@ ...@@ -12,14 +12,14 @@
netchecker_port: 31081 netchecker_port: 31081
tasks: tasks:
- name: Force binaries directory for CoreOS - name: Force binaries directory for Container Linux by CoreOS
set_fact: set_fact:
bin_dir: "/opt/bin" bin_dir: "/opt/bin"
when: ansible_os_family == "CoreOS" when: ansible_os_family == "Container Linux by CoreOS"
- set_fact: - set_fact:
bin_dir: "/usr/local/bin" bin_dir: "/usr/local/bin"
when: ansible_os_family != "CoreOS" when: ansible_os_family != "Container Linux by CoreOS"
- name: Wait for netchecker server - name: Wait for netchecker server
shell: "{{ bin_dir }}/kubectl get pods --namespace {{netcheck_namespace}} | grep ^netchecker-server" shell: "{{ bin_dir }}/kubectl get pods --namespace {{netcheck_namespace}} | grep ^netchecker-server"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment