diff --git a/docker-setup.yaml b/docker-setup.yaml deleted file mode 100644 index 06c8817..0000000 --- a/docker-setup.yaml +++ /dev/null @@ -1,47 +0,0 @@ ---- -- name: Setup Docker on host - hosts: docker_hosts - vars: - user_name: "{{ create_user | default(ansible_user) }}" - docker_config_path: >- - {% if ansible_facts.os_family == 'Darwin' -%} - ~/.docker/daemon.json - {%- else -%} - /etc/docker/daemon.json - {%- endif %} - ansible_python_interpreter: python3 - - roles: - - docker_install - - tasks: - - - name: Add to Docker group - user: - name: "{{ user_name }}" - groups: docker - append: true - become: true - - - name: Use journald logging driver # noqa 207 - json_merge: - path: "{{ docker_config_path }}" - allow_create: true - format_indent: true - update_json: { - "log-driver": "journald", - "log-opts": { - "tag": "{{ '{{ .Name }}/{{ .ImageName }}/{{ .ID }}' }}", - "labels": "com.docker.compose.project,com.docker.compose.service" - } - } - become: true - notify: Restart Docker daemon - - handlers: - - name: Restart Docker daemon - service: - name: docker - state: restarted - become: true - when: ansible_facts['os_family'] != "Darwin"