Skip to content

thomasleveil/ansible-synology-docker-daemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synology Docker daemon

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.

Travis CI Ansible Role ![Platforms](http://img.shields.io/badge/platforms-Synology 6.0-lightgrey.svg?style=flat)

Requirements

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.

Role variables

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

Examples

- hosts: all
  roles:
   - {role: ansible-synology-docker-daemon, docker_opts: [--dns 80.67.169.12, --dns 80.67.169.40, --ipv6=true]}

How to add this role to your git repository with submodules

# 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

About

Ansible role to manage the Docker daemon options

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published