docker tagshttps://git.coop/webarch/docker/-/tags2024-02-12T17:20:06Zhttps://git.coop/webarch/docker/-/tags/3.4.03.4.0version 3.4.0<p data-sourcepos="1:1-1:84" dir="auto">Default to checking all variables that start with <code data-sourcepos="1:52-1:58">docker_</code> using the argument spec.</p>
<p data-sourcepos="3:1-3:140" dir="auto">Default to not installing <code data-sourcepos="3:28-3:50">/etc/docker/daemon.json</code>, defined a <code data-sourcepos="3:65-3:77">docker_daemon</code> dictionary for it to be written to <code data-sourcepos="3:116-3:138">/etc/docker/daemon.json</code>.</p>2024-02-12T17:20:06ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/3.3.13.3.1Version 3.3.1<p data-sourcepos="1:1-1:50" dir="auto">Flush handlers added as the last task in the role.</p>2024-01-30T13:50:10ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/3.3.03.3.0Version 3.3.0<p data-sourcepos="1:1-1:93" dir="auto">Update <code data-sourcepos="1:9-1:14">docker</code> to default to <code data-sourcepos="1:32-1:36">false</code>, set it to <code data-sourcepos="1:51-1:54">true</code> for the tasks in this role to be run.</p>2024-02-12T16:26:06ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/3.2.13.2.1Version 3.2.1<p data-sourcepos="1:1-1:44" dir="auto">Update GitLab CI and molecule configuration.</p>2023-12-13T17:33:39ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/3.2.03.2.0Version 3.2.0<p data-sourcepos="1:1-1:79" dir="auto">Include the <a data-sourcepos="1:13-1:47" href="https://git.coop/webarch/apt">apt</a> role for <code data-sourcepos="1:59-1:71">ansible_local</code> facts.</p>2023-01-27T14:57:55ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/3.1.13.1.1Lint update for version 3.1.1<p data-sourcepos="1:1-1:55" dir="auto">This is a minor update to fix some Ansible lint issues.</p>2022-11-18T14:43:49ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/3.1.03.1.0<p data-sourcepos="1:1-1:153" dir="auto">This update changes the <code data-sourcepos="1:26-1:28">gpg</code> fingerprints check to use <code data-sourcepos="1:58-1:59">jc</code>, <a data-sourcepos="1:63-1:140" href="https://github.com/kellyjonbrazil/jc/releases/tag/v1.20.2" rel="nofollow noreferrer noopener" target="_blank">JC version 1.20.2</a> is required.</p>
<p data-sourcepos="3:1-3:130" dir="auto">Legacy <code data-sourcepos="3:9-3:45">/etc/apt/sources.list.d/*docker*.list</code> files now get <code data-sourcepos="3:63-3:75">.ansible.save</code> extensions to disable them rather than being deleted.</p>
<p data-sourcepos="5:1-5:126" dir="auto">Local facts script have been added to provide the path to <code data-sourcepos="5:60-5:63">bash</code> and the <code data-sourcepos="5:75-5:77">gpg</code> version and the <code data-sourcepos="5:97-5:100">dpkg</code> script has been updated.</p>2022-07-06T17:21:49ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/3.0.23.0.2<p data-sourcepos="1:1-1:94" dir="auto">This updates fixes the <code data-sourcepos="1:25-1:27">gpg</code> public key fingerprint check on Debian Stretch and Ubuntu Bionic.</p>2022-06-30T18:23:10ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/3.0.13.0.1<p data-sourcepos="1:1-1:140" dir="auto">This release adds some additional checks for files existing in order that tasks can be skipped when in check mode and the files don't exist.</p>2022-06-30T15:00:50ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/3.0.03.0.0<p data-sourcepos="1:1-1:55" dir="auto">This is a major refactor of this role, the key changes:</p>
<ul data-sourcepos="3:1-7:114" dir="auto">
<li data-sourcepos="3:1-3:81">A new <code data-sourcepos="3:10-3:22">docker_daemon</code> dictionary is used to generate <code data-sourcepos="3:57-3:79">/etc/docker/daemon.json</code>.</li>
<li data-sourcepos="4:1-4:99">A new <code data-sourcepos="4:10-4:19">docker_pkg</code> array is used for a list of packages to be installed from the Docker apt repo.</li>
<li data-sourcepos="5:1-5:189">The <code data-sourcepos="5:8-5:24">docker_compose_v1</code> variable is no longer defined by default, set it to <code data-sourcepos="5:80-5:84">false</code> to uninstall <code data-sourcepos="5:101-5:114">docker-compose</code> version 1.x and set it to <code data-sourcepos="5:144-5:147">true</code> to install <code data-sourcepos="5:162-5:175">docker-compose</code> version 1.x.</li>
<li data-sourcepos="6:1-6:60">The use of <code data-sourcepos="6:15-6:22">.sources</code> rather than <code data-sourcepos="6:38-6:42">.list</code> files for <code data-sourcepos="6:56-6:58">apt</code>.</li>
<li data-sourcepos="7:1-7:114">A Bash script has been added to generate the CPU architecture as a local fact using <code data-sourcepos="7:88-7:112">dpkg --print-architecture</code>.</li>
</ul>2022-06-29T12:10:53ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/2.2.02.2.0<p data-sourcepos="1:1-1:223" dir="auto">This release adds a check of the CPU architecture using <code data-sourcepos="1:58-1:82">dpkg --print-architecture</code> so that this can be included in the <code data-sourcepos="1:122-1:156">/etc/apt/sources.list.d/docker.list</code> and the sources list is now templated to avoid duplicate entries.</p>2021-11-12T11:11:56ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/2.1.12.1.1<p data-sourcepos="1:1-1:158" dir="auto">This release enables the first run of <code data-sourcepos="1:40-1:83">update-alternatives --display docker-compose</code> to fail with a return code of <code data-sourcepos="1:117-1:117">2</code> without causing the whole role to fail.</p>2021-11-10T15:26:07ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/2.1.02.1.0<p data-sourcepos="1:1-1:104" dir="auto">This release adds the ability to be selective regarding what packages are installed, all are by default:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre data-sourcepos="3:1-7:3" data-canonical-lang="yml" class="code highlight js-syntax-highlight language-yaml" lang="yaml" v-pre="true"><code><span id="LC1" class="line" lang="yaml"><span class="na">docker</span><span class="pi">:</span> <span class="kc">true</span></span>
<span id="LC2" class="line" lang="yaml"><span class="na">docker_compose</span><span class="pi">:</span> <span class="kc">true</span></span>
<span id="LC3" class="line" lang="yaml"><span class="na">docker_compose_v1</span><span class="pi">:</span> <span class="kc">true</span></span></code></pre>
<copy-code></copy-code>
</div>
<p data-sourcepos="9:1-9:128" dir="auto">Ansible tags can also be used to be selecting regarding what tasks are run, the <code data-sourcepos="9:82-9:87">docker</code> tasks and / the <code data-sourcepos="9:107-9:120">docker_compose</code> tasks.</p>
<p data-sourcepos="11:1-11:287" dir="auto">In addition a new version of Docker Compose is now only installed if the exiting version is older than the latest version. Such a check isn't possible for <code data-sourcepos="11:157-11:170">compose-switch</code> as there are no <a data-sourcepos="11:189-11:286" href="https://github.com/docker/compose-switch/issues/11" rel="nofollow noreferrer noopener" target="_blank">checksums or signatures for release binaries</a>.</p>2021-11-09T15:10:33ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/2.0.02.0.0<p data-sourcepos="1:1-1:197" dir="auto">This role has been refactored for Docker Compose v2 and the ability to use this repo to install Docker on the <code data-sourcepos="1:112-1:120">localhost</code> has been moved to the <a data-sourcepos="1:145-1:196" href="https://git.coop/webarch/localhost">localhost repo</a>.</p>2021-11-07T22:30:06ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/1.3.01.3.0<p data-sourcepos="1:1-1:72" dir="auto">Don't try to install <code data-sourcepos="1:23-1:35">python-docker</code> unless on Debian Stretch or Buster.</p>2021-10-16T19:49:24ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/1.2.11.2.1Docker Ansible Role 1.2.1<p data-sourcepos="1:1-1:31" dir="auto">Package <code data-sourcepos="1:10-1:23">python3-docker</code> added.</p>2020-05-30T06:48:11ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/1.2.01.2.0Docker Ansible Role 1.2.0<p data-sourcepos="1:1-1:80" dir="auto">Check the <code data-sourcepos="1:12-1:25">docker-compose</code> version when it isn't installed, fixed with <a href="/webarch/docker/-/commit/440c8531d5fb9b2d31106ba6070e269228d931d8" data-reference-type="commit" data-original="440c8531" data-link="false" data-link-reference="false" data-project="59" data-commit="440c8531d5fb9b2d31106ba6070e269228d931d8" data-container="body" data-placement="top" title="Check Docker composer version when it isn't installed" class="gfm gfm-commit has-tooltip">440c8531</a>.</p>2020-05-27T23:00:35ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/1.1.11.1.1Docker Ansible Role 1.1.1<p data-sourcepos="1:1-1:47" dir="auto">Fix for <code data-sourcepos="1:10-1:23">docker_compose</code> variable, see <a href="/webarch/docker/-/commit/446eac8b05b8ec8a8fc46f2b645baa3083ba8d69" data-reference-type="commit" data-original="446eac8b" data-link="false" data-link-reference="false" data-project="59" data-commit="446eac8b05b8ec8a8fc46f2b645baa3083ba8d69" data-container="body" data-placement="top" title="docker_compose variable fixed" class="gfm gfm-commit has-tooltip">446eac8b</a></p>2020-05-27T22:51:43ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/1.1.01.1.0Docker Ansible Role 1.1.0<ul data-sourcepos="1:1-2:52" dir="auto">
<li data-sourcepos="1:1-1:109">Support for installing <a data-sourcepos="1:26-1:91" href="https://docs.docker.com/engine/install/ubuntu/" rel="nofollow noreferrer noopener" target="_blank">Docker on Ubuntu</a> fixed in <a href="/webarch/docker/-/commit/d198cc02ff4927b701e72ba944b7024d46ca7eac" data-reference-type="commit" data-original="d198cc02" data-link="false" data-link-reference="false" data-project="59" data-commit="d198cc02ff4927b701e72ba944b7024d46ca7eac" data-container="body" data-placement="top" title="Updates for Ubuntu" class="gfm gfm-commit has-tooltip">d198cc02</a>
</li>
<li data-sourcepos="2:1-2:52">Install <code data-sourcepos="2:12-2:22">gnupg-agent</code> for Ubuntu added in <a href="/webarch/docker/-/commit/d198cc02ff4927b701e72ba944b7024d46ca7eac" data-reference-type="commit" data-original="d198cc02" data-link="false" data-link-reference="false" data-project="59" data-commit="d198cc02ff4927b701e72ba944b7024d46ca7eac" data-container="body" data-placement="top" title="Updates for Ubuntu" class="gfm gfm-commit has-tooltip">d198cc02</a>
</li>
</ul>2020-05-27T20:31:23ZChris Croomechris@webarchitects.co.ukhttps://git.coop/webarch/docker/-/tags/1.0.01.0.0Docker Ansible Role 1.0.0<p data-sourcepos="1:1-1:312" dir="auto">This role has been used in production for a while, it could no doubt be better documented and simplified however that is for later versions. From now on semantic versioning will be used and a new <code data-sourcepos="1:198-1:211">docker_compose</code> boolean has been added, it defaults to <code data-sourcepos="1:254-1:257">True</code> and causes the latest Docker Compose to be installed.</p>2020-05-27T16:17:10ZChris Croomechris@webarchitects.co.uk