mirror of https://dev.ccchb.de/ccchb/ansible.git
Autostart the enabled bhyve guests
This commit is contained in:
parent
38e8fd2ec5
commit
53f795faf6
|
@ -92,3 +92,11 @@
|
||||||
fdmove -c 2 1 s6-rc -v 2 -d change bhyve-disabled
|
fdmove -c 2 1 s6-rc -v 2 -d change bhyve-disabled
|
||||||
register: change
|
register: change
|
||||||
changed_when: change.stdout | length > 0
|
changed_when: change.stdout | length > 0
|
||||||
|
|
||||||
|
- name: Autostart enabled bhyve guests
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/s6-rc/service/enabled/contents
|
||||||
|
regexp: '^bhyve-enabled$'
|
||||||
|
line: 'bhyve-enabled'
|
||||||
|
notify:
|
||||||
|
- Reload s6-rc
|
||||||
|
|
Loading…
Reference in New Issue