15 lines
476 B
YAML
15 lines
476 B
YAML
|
---
|
||
|
- ansible.builtin.blockinfile:
|
||
|
path: /etc/nginx/nginx.conf
|
||
|
block: |
|
||
|
upstream storage_nemunaire {
|
||
|
{% for server in s3_hosts %}
|
||
|
server {{ server.host }}:{{ server.port | default(9000) }}{% if server.backup is defined and server.backup %} backup{% endif %};
|
||
|
{% endfor %}
|
||
|
}
|
||
|
insertafter: 'http {'
|
||
|
marker: "# {mark} ANSIBLE MANAGED BLOCK storage_nemunaire"
|
||
|
|
||
|
- ansible.builtin.include_role:
|
||
|
name: re.nemunai.nginx-config-svc
|