forked from saratov/infra
fix bind unit file
This commit is contained in:
parent
71cdc425fd
commit
d026de558d
@ -10,3 +10,7 @@
|
||||
service:
|
||||
name: network
|
||||
state: restarted
|
||||
|
||||
- name: reload systemd
|
||||
systemd:
|
||||
daemon_reload: true
|
||||
|
@ -18,6 +18,18 @@
|
||||
with_items: "{{ bind_packages }}"
|
||||
tags: bind
|
||||
|
||||
- name: fix bind service unit
|
||||
lineinfile:
|
||||
dest: /lib/systemd/system/bind.service
|
||||
regexp: "{{ item.regexp | default(omit)}}"
|
||||
line: "{{ item.line }}"
|
||||
insertafter: "{{ item.insertafter | default(omit) }}"
|
||||
notify: reload systemd
|
||||
with_items:
|
||||
- { line: 'PartOf=network.service', insertafter: '^After=network'}
|
||||
- { regexp: '^After=network', line: 'After=network.service'}
|
||||
|
||||
|
||||
- name: Ensure runtime directories referenced in config exist
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
|
Loading…
Reference in New Issue
Block a user