Compare commits

..

2 Commits

Author SHA1 Message Date
ce9cd996ee
feat(synapse): add deployment type podman 2024-09-22 18:24:51 +02:00
50ae4f63cc
feat(synapse): add ansible role 2024-09-22 18:24:44 +02:00
2 changed files with 10 additions and 2 deletions

View File

@ -6,3 +6,11 @@
state: started
restart: true
when: synapse_deployment_method == 'docker'
- name: Ensure synapse is restarted
listen: synapse-restart
containers.podman.podman_container:
name: "{{ synapse_container_name }}"
state: "{{ synapse_container_state }}"
force_restart: true
when: synapse_deployment_method == 'podman'

View File

@ -13,7 +13,7 @@
when: synapse_deployment_method not in synapse_deployment_methods
- name: Ensure required variables are given
fail:
ansible.builtin.fail:
msg: "Required variable '{{ item }}' is undefined!"
loop: "{{ synapse_required_variables }}"
when: >-2
@ -21,7 +21,7 @@
or hostvars[ansible_host][item] | length == 0
- name: Ensure conditionally required variables are given
fail:
ansible.builtin.fail:
msg: "Required variable '{{ item.name }}' is undefined!"
loop: "{{ synapse_conditionally_required_variables }}"
loop_control: