Fix systemd/lxc-net.service
This commit is contained in:
parent
ee0e0c9696
commit
348a71508b
|
@ -91,12 +91,34 @@
|
|||
backup: yes
|
||||
|
||||
|
||||
- name: lxc-net with systemd
|
||||
block:
|
||||
- name: Stop lxc-net service
|
||||
systemd:
|
||||
name: lxc-net
|
||||
state: stopped
|
||||
|
||||
- name: Disable lxc-net service
|
||||
systemd:
|
||||
name: lxc-net
|
||||
enabled: no
|
||||
|
||||
- name: Mask lxc-net service
|
||||
systemd:
|
||||
name: lxc-net
|
||||
masked: yes
|
||||
when: ansible_service_mgr == "systemd"
|
||||
|
||||
|
||||
- name: lxc-net without systemd
|
||||
block:
|
||||
- name: Disable lxc-net
|
||||
service:
|
||||
name: lxc-net
|
||||
enabled: no
|
||||
state: stopped
|
||||
ignore_errors: yes
|
||||
when: ansible_service_mgr != "systemd"
|
||||
|
||||
|
||||
- name: Bring up br-lxc
|
||||
|
|
Loading…
Reference in a new issue