Fix systemd/lxc-net.service
This commit is contained in:
parent
ee0e0c9696
commit
348a71508b
|
@ -91,12 +91,34 @@
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
||||||
|
|
||||||
- name: Disable lxc-net
|
- name: lxc-net with systemd
|
||||||
service:
|
block:
|
||||||
name: lxc-net
|
- name: Stop lxc-net service
|
||||||
enabled: no
|
systemd:
|
||||||
state: stopped
|
name: lxc-net
|
||||||
ignore_errors: yes
|
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
|
- name: Bring up br-lxc
|
||||||
|
|
Loading…
Reference in a new issue