Add option to have two services in one role and add phpvms_test

This commit is contained in:
Tobias Reisinger 2026-02-09 23:20:17 +01:00
parent 8065273196
commit 4a71c9c170
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
8 changed files with 33 additions and 16 deletions

View file

@ -33,12 +33,14 @@
group: "{{ phpvms_gid }}"
become: true
notify: Restart service {{ service_name }}
when: service_name == role_name # Only use on "main" instance
- name: Copy Caddyfile
ansible.builtin.copy:
src: Caddyfile
- name: Template Caddyfile
ansible.builtin.template:
src: Caddyfile.j2
dest: "{{ (service_path, 'Caddyfile') | path_join }}"
mode: "0644"
notify: Restart service {{ service_name }}
- name: Import start tasks for common service
ansible.builtin.import_tasks: tasks/start-common-service.yml