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>
# 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
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:
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