--- - name: Copy root certificate copy: src: "/certs/rootCA.crt" dest: /etc/pki/ca-trust/source/anchors/ notify: Restart Docker - name: Extract root certificate command: /usr/bin/update-ca-trust extract notify: Restart Docker