Add option to have two services in one role and add phpvms_test
This commit is contained in:
parent
8065273196
commit
4a71c9c170
8 changed files with 33 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue