mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-11-22 11:48:22 +01:00
Fixed issue with SUSE docker installation
This commit is contained in:
parent
04a92ee956
commit
e07903a5cf
@ -23,7 +23,10 @@
|
|||||||
and (k3s_non_root is not defined or not k3s_non_root)
|
and (k3s_non_root is not defined or not k3s_non_root)
|
||||||
|
|
||||||
- include_tasks: build/install-docker-{{ ansible_distribution | replace(" ", "-") | lower }}.yml
|
- 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)
|
and (k3s_non_root is not defined or not k3s_non_root)
|
||||||
|
|
||||||
- import_tasks: build/download-k3s.yml
|
- 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
|
if [ ! -f .vagrant_provision ] ; then
|
||||||
echo "Installing dependencies ..."
|
echo "Installing dependencies ..."
|
||||||
sudo zypper refresh > /dev/null 2>&1 && echo "[OK] Update Zypper cache."
|
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."
|
echo "[OK] Installing Python."
|
||||||
touch .vagrant_provision
|
touch .vagrant_provision
|
||||||
else
|
else
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
all:
|
all:
|
||||||
vars:
|
vars:
|
||||||
ansible_become: true
|
ansible_become: true
|
||||||
k3s_ensure_docker_installed: false
|
k3s_use_docker: false
|
||||||
|
|
||||||
k3s_nodes:
|
k3s_nodes:
|
||||||
hosts:
|
hosts:
|
||||||
|
Loading…
Reference in New Issue
Block a user