Autostart the enabled bhyve guests

This commit is contained in:
Crest 2020-09-17 02:38:24 +02:00
parent 38e8fd2ec5
commit 53f795faf6
1 changed files with 8 additions and 0 deletions

View File

@ -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