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