Add client API to configuration

This commit is contained in:
2023-09-01 15:42:21 -04:00
parent c5b07fcdad
commit d5516d891c
3 changed files with 31 additions and 7 deletions

View File

@ -3,19 +3,22 @@
apt:
name:
- pvc-daemon
- pvc-client-cli
- pvc-client-common
- pvc-client-cli
- pvc-client-api
- debootstrap
- ethtool
state: latest
- name: install pvc configuration
- name: install pvc configurations
template:
src: pvc/{{ item }}.j2
dest: /etc/pvc/{{ item }}
src: pvc/{{ item }}.yaml.j2
dest: /etc/pvc/{{ item }}.yaml
notify:
- restart {{ item }}
with_items:
- pvcd.yaml
notify: restart pvcd
- pvcd
- pvc-api
- name: stop and disable unneccessary services
service:
@ -29,7 +32,7 @@
when: bootstrap is defined and bootstrap
run_once: yes
- name: enable services but don't start them
- name: enable daemon services but don't start them
service:
name: "{{ item }}"
enabled: yes