Remove unused playbook
This commit is contained in:
parent
e677259a1d
commit
8eb7a58dfd
@ -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"
|
|
Loading…
Reference in New Issue
Block a user