From c09af9936ab98132f451a6b3a1e55e6d5e0eda2a Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 24 May 2022 20:09:45 -0700 Subject: [PATCH] Remove unused playbook --- docker-setup.yaml | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 docker-setup.yaml 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"