This Ansible role manages the Docker daemon options.
By default, the Synology Docker daemon is started with just the --ipv6=true
option, I needed to set custom DNS options.
![Platforms](http://img.shields.io/badge/platforms-Synology 6.0-lightgrey.svg?style=flat)
This role was tested with Ansible 2.2. It should work with 1.7 and over.
Tested with Synology DSM 6.0.2-8451 Update 3
which comes with Docker 1.11.2
.
Any change to the DSM version or Docker version might break this role.
There is only one variable: docker_opts
which is a list of Docker daemon options.
docker_opts:
- --dns 8.8.8.8
- --dns 8.8.4.4
- --ipv6=true
- hosts: all
roles:
- {role: ansible-synology-docker-daemon, docker_opts: [--dns 80.67.169.12, --dns 80.67.169.40, --ipv6=true]}
# new ansible project
mkdir ansible-nas
cd ansible-nas
# initialize git
git init
# Add the role
git submodule add https://github.com/thomasleveil/ansible-synology-docker-daemon.git roles/ansible-synology-docker-daemon
# Create a playbook
cat <<EOPLAY > synology.yml
- hosts: all
roles:
- {role: ansible-synology-docker-daemon, docker_opts: [--dns 80.67.169.12, --dns 80.67.169.40, --ipv6=true]}
EOPLAY
git add .gitmodules roles/ansible-synology-docker-daemon/ synology.yml
git commit -m "ansible-synology-docker-daemon role"
# hack hack hack