Skip to content
Snippets Groups Projects
Verified Commit 42aa12bb authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

use mount module for mount command

parent a0aea448
No related branches found
No related tags found
No related merge requests found
...@@ -63,12 +63,13 @@ ...@@ -63,12 +63,13 @@
- name: Workaround debian bug 2/3 - name: Workaround debian bug 2/3
# kubectl needs to get installed as "classic" snap # kubectl needs to get installed as "classic" snap
command: mount --bind /dev/zero /sys/{{ kbd_device.stdout }}/uevent mount:
args: opts: bind
creates: /snap/bin/kubectl src: /dev/zero
# Circumvent the warning about using the Ansible mount module path: /sys/{{ kbd_device.stdout }}/uevent
warn: false fstype: none
when: kbd_device.stdout != "" state: mounted
when: kbd_device.stdout != "" and kbd_device.stdout != "skipped, since /snap/bin/kubectl exists"
- name: Install kubectl snap - name: Install kubectl snap
# kubectl needs to get installed as "classic" snap # kubectl needs to get installed as "classic" snap
...@@ -78,11 +79,10 @@ ...@@ -78,11 +79,10 @@
- name: Workaround debian bug 3/3 - name: Workaround debian bug 3/3
# kubectl needs to get installed as "classic" snap # kubectl needs to get installed as "classic" snap
command: umount /sys/{{ kbd_device.stdout }}/uevent mount:
args: path: /sys/{{ kbd_device.stdout }}/uevent
creates: /snap/bin/kubectl state: unmounted
warn: false when: kbd_device.stdout != "" and kbd_device.stdout != "skipped, since /snap/bin/kubectl exists"
when: kbd_device.stdout != ""
- name: Create kubectl symlink to /usr/local/bin - name: Create kubectl symlink to /usr/local/bin
file: file:
......
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