Commit cf703c3d authored by nanahira's avatar nanahira

cloud pull images first

parent d73acf23
......@@ -18,6 +18,13 @@
mycardDomains: true
gfwlistIPSet: false
tasks:
- name: pull some images
docker_image:
name: '{{item}}'
source: pull
with_items:
- git-registry.mycard.moe/nanahira/docker-smartdns
- git-registry.mycard.moe/nanahira/dnsmasq
- name: clean some rubbish packages
become: true
apt:
......@@ -31,6 +38,13 @@
enabled: false
masked: true
when: ansible_distribution == 'Ubuntu'
- name: set resolv.conf
become: true
copy:
content: |
nameserver 127.0.0.1
dest: /etc/resolv.conf
- name: iptables-gateways blank
file:
name: '{{ansible_user_dir}}/iptables-gateways'
......@@ -98,13 +112,6 @@
docker_compose:
project_src: '{{ansible_user_dir}}/nextgen-router/services/dnsmasq'
remove_orphans: true
- name: set resolv.conf
become: true
copy:
content: |
nameserver 127.0.0.1
dest: /etc/resolv.conf
handlers:
- name: restart_dnsmasq
docker_compose:
......
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