You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
498 B
24 lines
498 B
---
|
|
- name: bootstrap done
|
|
set_fact:
|
|
bootstrapped: true
|
|
changed_when: "bootstrapped == true"
|
|
notify: update vm.conf
|
|
- name: update vm.conf
|
|
template:
|
|
src: vm.conf
|
|
dest: /etc/vm.conf
|
|
owner: root
|
|
group: wheel
|
|
mode: '0640'
|
|
notify: unset bootstrap variable
|
|
- name: unset bootstrap variable
|
|
set_fact:
|
|
bootstrapped: false
|
|
changed_when: "bootstrapped == false"
|
|
notify: reload vmd
|
|
- name: reload vmd
|
|
service:
|
|
name: vmd
|
|
state: reloaded
|
|
enabled: true
|
|
|