Commit fd3f6d42 authored by nanahira's avatar nanahira

fix

parent bc8d6c7d
......@@ -11,9 +11,16 @@
- name: 8021q
path: net/8021q/8021q.ko
tasks:
- name: default ntp package
set_fact:
ntp_package: ntpdate
- name: debian 13 ntp package
set_fact:
ntp_package: ntpsec-ntpdate
when: ansible_distribution == "Debian" and ansible_distribution_major_version|int >= 13
- name: apt
apt:
name: net-tools,bridge-utils,pppoe,iproute2,iptables,ipset,subnetcalc,ifupdown,ifenslave,ntpdate,util-linux
name: net-tools,bridge-utils,pppoe,iproute2,iptables,ipset,subnetcalc,ifupdown,ifenslave,{{ntp_package}},util-linux
update_cache: true
- name: Ubuntu things
apt:
......
......@@ -29,6 +29,15 @@
dest: '{{ansible_user_dir}}/nextgen-router/services/dnsmasq/smartdns/china-list.conf'
notify: restart_dnsmasq
when: not (smartdns.external is defined and smartdns.external)
- name: patch docker-compose main.py
become: true
lineinfile:
path: "/usr/local/lib/python{{ ansible_python.version.major }}.{{ ansible_python.version.minor }}/dist-packages/compose/cli/main.py"
regexp: '.*pipes.*'
line: '# disabled'
backrefs: true
backup: true
when: ansible_python.version.minor >= 13
- name: start dnsmasq
docker_compose:
project_src: '{{ansible_user_dir}}/nextgen-router/services/dnsmasq'
......
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