Commit c91d080d authored by nanahira's avatar nanahira

smartdns arch support

parent 19860d76
...@@ -3,3 +3,4 @@ ...@@ -3,3 +3,4 @@
utility_root: /root/utility utility_root: /root/utility
apt_cacher_path: ./apt-cacher-ng/cache apt_cacher_path: ./apt-cacher-ng/cache
apt_mirror: mirrors.tuna.tsinghua.edu.cn apt_mirror: mirrors.tuna.tsinghua.edu.cn
smartdns_image: yousiki/smartdns:x86_64
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
file: file:
path: '{{utility_root}}' path: '{{utility_root}}'
state: directory state: directory
- name: arm64 support
set_fact:
smartdns_image: yousiki/smartdns:aarch64
when: 'ansible_architecture == "aarch64"'
- name: docker-compose - name: docker-compose
template: template:
src: docker-compose.yml.j2 src: docker-compose.yml.j2
......
...@@ -10,7 +10,7 @@ services: ...@@ -10,7 +10,7 @@ services:
smartdns-tls: smartdns-tls:
restart: always restart: always
image: yousiki/smartdns image: {{smartdns_image}}
ports: ports:
- '54:53' - '54:53'
- '54:53/udp' - '54:53/udp'
...@@ -20,7 +20,7 @@ services: ...@@ -20,7 +20,7 @@ services:
smartdns-china: smartdns-china:
restart: always restart: always
image: yousiki/smartdns image: {{smartdns_image}}
ports: ports:
- '55:53' - '55:53'
- '55:53/udp' - '55:53/udp'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment