From f96f0b7065736ae0d8217d02fb6d96fedf548231 Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Fri, 12 Apr 2024 10:29:39 +0200 Subject: [PATCH] Add a way to install additional packages (like docker-buildx-plugin docker-compose-plugin) --- defaults/main.yml | 1 + tasks/main.yml | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 76f19ab..993c3d2 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,4 +1,5 @@ # defaults file --- +docker_install: [] docker_manage_ufw: true docker_manage_updatedb: true diff --git a/tasks/main.yml b/tasks/main.yml index a810de9..fc1e0e5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -18,6 +18,16 @@ - docker-install - docker-install-dependencies +- name: install additional + ansible.builtin.apt: + name: "{{ docker_install }}" + state: "{{ apt_install_state | default('latest') }}" + tags: + - configuration + - docker + - docker-install + - docker-install-additional + - name: configuration | update ansible.builtin.template: src: "{{ docker_docker_default_file.lstrip('/') }}.j2"