mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-12-05 02:40:19 +01:00
Fixed issue with SUSE docker installation
This commit is contained in:
parent
04a92ee956
commit
e07903a5cf
3 changed files with 6 additions and 3 deletions
|
@ -23,7 +23,10 @@
|
|||
and (k3s_non_root is not defined or not k3s_non_root)
|
||||
|
||||
- include_tasks: build/install-docker-{{ ansible_distribution | replace(" ", "-") | lower }}.yml
|
||||
when: ansible_distribution | replace(" ", "-") | lower in ['amazon', 'suse', 'opensuse-leap']
|
||||
when: k3s_use_docker
|
||||
and ((k3s_control_workers)
|
||||
or (not k3s_control_workers and not k3s_control_node))
|
||||
and ansible_distribution | replace(" ", "-") | lower in ['amazon', 'suse', 'opensuse-leap']
|
||||
and (k3s_non_root is not defined or not k3s_non_root)
|
||||
|
||||
- import_tasks: build/download-k3s.yml
|
||||
|
|
2
vagrant/Vagrantfile
vendored
2
vagrant/Vagrantfile
vendored
|
@ -30,7 +30,7 @@ $opensuse_provision = <<SCRIPT
|
|||
if [ ! -f .vagrant_provision ] ; then
|
||||
echo "Installing dependencies ..."
|
||||
sudo zypper refresh > /dev/null 2>&1 && echo "[OK] Update Zypper cache."
|
||||
sudo zypper install -y python > /dev/null 2>&1 && \
|
||||
sudo zypper install -y python python-xml > /dev/null 2>&1 && \
|
||||
echo "[OK] Installing Python."
|
||||
touch .vagrant_provision
|
||||
else
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
all:
|
||||
vars:
|
||||
ansible_become: true
|
||||
k3s_ensure_docker_installed: false
|
||||
k3s_use_docker: false
|
||||
|
||||
k3s_nodes:
|
||||
hosts:
|
||||
|
|
Loading…
Reference in a new issue