From 840f3629bc6b2688b8e9d8a2bdc376e8e08525b6 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 24 Sep 2023 00:02:59 +0200 Subject: [PATCH] Update docker-cluster role for ubuntu 22.04 --- roles/docker-cluster/tasks/dependencies.yml | 7 +++++++ roles/docker-cluster/tasks/main.yml | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 roles/docker-cluster/tasks/dependencies.yml diff --git a/roles/docker-cluster/tasks/dependencies.yml b/roles/docker-cluster/tasks/dependencies.yml new file mode 100644 index 0000000..f99e371 --- /dev/null +++ b/roles/docker-cluster/tasks/dependencies.yml @@ -0,0 +1,7 @@ +- name: install modules for docker networks + when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "22.04" + become: yes + apt: + update_cache: yes + pkg: + - linux-modules-extra-raspi diff --git a/roles/docker-cluster/tasks/main.yml b/roles/docker-cluster/tasks/main.yml index d6077e6..d56b5ee 100644 --- a/roles/docker-cluster/tasks/main.yml +++ b/roles/docker-cluster/tasks/main.yml @@ -5,6 +5,8 @@ - import_tasks: install-docker-io.yml when: ansible_distribution == "Ubuntu" and ansible_distribution_version != "18.04" +- import_tasks: dependencies.yml + - import_tasks: nfs-client.yml - import_tasks: gluster.yml @@ -17,4 +19,4 @@ - import_tasks: ssh-external.yml -- import_tasks: docker-cron.yml \ No newline at end of file +- import_tasks: docker-cron.yml