mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing dnsmasq to always start after docker so the interface is available.
This commit is contained in:
parent
a6e3bfdb09
commit
713d74b825
1 changed files with 15 additions and 0 deletions
|
@ -72,6 +72,21 @@
|
|||
vars:
|
||||
network_interfaces: "{{ ansible_interfaces }}"
|
||||
notify: restart dnsmasq
|
||||
|
||||
- name: Create systemd override directory for dnsmasq
|
||||
become: yes
|
||||
file:
|
||||
path: /etc/systemd/system/dnsmasq.service.d
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: Add override for dnsmasq service
|
||||
become: yes
|
||||
copy:
|
||||
dest: /etc/systemd/system/dnsmasq.service.d/override.conf
|
||||
content: |
|
||||
[Unit]
|
||||
After=docker.service
|
||||
|
||||
- name: Launch dnsmasq
|
||||
become: yes
|
||||
|
|
Loading…
Add table
Reference in a new issue