ansible-role-nginx-config-s.../tasks/main.yml

15 lines
476 B
YAML
Raw Normal View History

2023-03-26 14:23:35 +00:00
---
- 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