]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
container-host: Create tag for registries-conf-ctl 600/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 14 Dec 2020 17:36:39 +0000 (12:36 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 14 Dec 2020 17:47:34 +0000 (12:47 -0500)
This will let us skip those tasks when we don't want to run them (like on a Jenkins builder)

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/container-host/README.rst
roles/container-host/tasks/container_mirror.yml

index bea5240bbbd538d10b804186d359954e5979f09e..aa0b2476123677d9800470b6e97d8cc8be1542a8 100644 (file)
@@ -24,3 +24,11 @@ The following variables are used to optionally configure a docker.io mirror CA c
 
     # Automatically determined in roles/container-host/tasks/main.yml
     container_mirror_cert_path: "/etc/docker/certs.d/{{ container_mirror }}"
+
+Tags
+++++
+
+registries-conf-ctl
+    Add ``--skip-tags registries-conf-ctl`` to your ``ansible-playbook`` command if you don't want to use registries-conf-ctl_ to configure the container service's conf file.
+
+.. _registries-conf-ctl: https://github.com/sebastian-philipp/registries-conf-ctl
index d99d1a38bafc7c1a3ae617bcf814963cf1c21a19..8395f5d71e270e961002c1d7246c30aff1495ecf 100644 (file)
@@ -13,6 +13,8 @@
   pip:
     name: git+https://github.com/sebastian-philipp/registries-conf-ctl
     state: latest
+  tags:
+    - registries-conf-ctl
 
 - name: "Check for docker's daemon.json"
   stat:
@@ -35,6 +37,8 @@
   command: registries-conf-ctl add-mirror docker.io "{{ container_mirror }}"
   environment:
     PATH: /usr/local/bin:/usr/bin
+  tags:
+    - registries-conf-ctl
 
 # not very elegant but it's a workaround for now
 - name: Restart docker service