From 9876445f0a6058d687bcceff9ad012e18c50b30d Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 6 Dec 2023 13:55:50 +0000 Subject: [PATCH] Switch install-docker playbook to include_tasks The old include directive is deprecated in ansible-core 2.15 and will cease to be recognized in 2.16 according to https://docs.ansible.com/ansible-core/2.15/user_guide/playbooks_reuse_includes.html so switch the two remaining uses of it in this repository to include-tasks instead. Change-Id: I427e8aa8dd789f13b8501806ec175951db337fec --- playbooks/roles/install-docker/tasks/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/install-docker/tasks/main.yaml b/playbooks/roles/install-docker/tasks/main.yaml index d59b469a4b..66092e6c8e 100644 --- a/playbooks/roles/install-docker/tasks/main.yaml +++ b/playbooks/roles/install-docker/tasks/main.yaml @@ -5,11 +5,11 @@ path: /etc/docker - name: Install docker-ce from upstream - include: upstream.yaml + include_tasks: upstream.yaml when: use_upstream_docker|bool - name: Install docker-engine from distro - include: distro.yaml + include_tasks: distro.yaml when: not use_upstream_docker|bool - name: reset ssh connection to pick up docker group