Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Only install socat if not present.
Browse files Browse the repository at this point in the history
  • Loading branch information
blacs30 committed Sep 24, 2020
1 parent ad15567 commit 5d02c25
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion roles/kubernetes/node/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,15 @@
- kubelet
- upgrade

- name: install | Check if socat is installed
shell: command -v socat >/dev/null 2>&1
register: is_socat_exist
ignore_errors: yes

- name: install | Copy socat wrapper for Container Linux
command: "{{ docker_bin_dir }}/docker run --rm -v {{ bin_dir }}:/opt/bin {{ install_socat_image_repo }}:{{ install_socat_image_tag }}"
args:
creates: "{{ bin_dir }}/socat"
when: ansible_os_family in ['Flatcar Container Linux by Kinvolk']
when:
- ansible_os_family in ['Flatcar Container Linux by Kinvolk']
- is_socat_exist.rc != 0

0 comments on commit 5d02c25

Please sign in to comment.