Reorganize and rejigger

This commit is contained in:
2023-09-01 15:42:19 -04:00
parent 5cbce17bd1
commit a922fe4df7
16 changed files with 378 additions and 367 deletions

View File

@ -0,0 +1,41 @@
---
- name: install pvc packages
apt:
name:
- pvc-daemon
- pvc-client-cli
- pvc-client-common
state: latest
- name: install pvc configuration
template:
src: pvc/{{ item }}.j2
dest: /etc/pvc/{{ item }}
with_items:
- pvcd.yaml
notify: restart pvcd
- name: stop and disable unneccessary services
service:
name: "{{ item }}"
state: stopped
enabled: no
with_items:
- pdns.service
- name: bootstrap a fresh cluster
shell: /usr/bin/pvc init
when: bootstrap is defined and bootstrap
run_once: yes
- name: start and enable services
service:
name: "{{ item }}"
state: started
enabled: yes
with_items:
- pvc-flush.service
- pvcd.service
- pvcd.target
- meta: flush_handlers