From 0bd157f0bdb46cb20a8c5c41601c5cf578893722 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 26 Jan 2020 13:24:10 +0100 Subject: [PATCH] ansible/docker: ensure gnupg + crontab are installed Both are required by docker, but seem to be missing from explicit dpkg 'Requires' :/ TASK [docker : add docker gpg key to apt keyring] ******************************************************** fatal: [rpi4-deb9build-ansible]: FAILED! => {"changed": false, "msg": "Failed to find required executable gpg in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"} TASK [docker : cleanup old docker images] **************************************************************** [WARNING]: The value 0 (type int) in a string field was converted to '0' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. fatal: [rpi4-deb9build-ansible]: FAILED! => {"changed": false, "msg": "Failed to find required executable crontab in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"} Change-Id: I2d342f85f6bc1b80eaafc7075552019fea147894 --- ansible/roles/docker/tasks/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ansible/roles/docker/tasks/main.yml b/ansible/roles/docker/tasks/main.yml index 0a58a2c3..813b5ac4 100644 --- a/ansible/roles/docker/tasks/main.yml +++ b/ansible/roles/docker/tasks/main.yml @@ -2,9 +2,13 @@ - name: add https support apt: - name: apt-transport-https + name: "{{ item }}" cache_valid_time: 3600 update_cache: yes + with_items: + - apt-transport-https + - gnupg + - cron - name: add docker gpg key to apt keyring apt_key: