infra/roles/nginx/tasks/main.yml
Sergey Bubnov (omg) 8dc65328a3 new nginx role
2019-06-29 01:27:16 +04:00

16 lines
353 B
YAML

---
- name: prepare config for role
block:
- include_vars:
file: "conf/stacks/{{stack_name}}/apps/nginx.yml"
name: nginx
- set_fact: {'nginx_{{item.key}}': '{{item.value}}'}
with_dict: "{{nginx}}"
- set_fact:
ansible_distribution: "ALT"
ansible_os_family: "ALT"
- name: execute actual role
import_role: name=nginx-role