ansible-role-nginx/molecule/common/playbook_default.yml

35 lines
875 B
YAML
Raw Normal View History

---
- name: Converge
hosts: all
pre_tasks:
- name: "Set repo if Alpine"
set_fact:
2020-06-08 15:46:01 +02:00
version: "=1.17.10-r1"
when: ansible_os_family == "Alpine"
- name: "Set repo if Debian"
set_fact:
2020-06-08 15:46:01 +02:00
version: "=1.17.10-1~{{ ansible_distribution_release }}"
when: ansible_os_family == "Debian"
- name: "Set repo if RedHat"
set_fact:
2020-06-08 15:46:01 +02:00
version: "-1.17.10-1.el{{ ansible_distribution_major_version }}.ngx"
when: ansible_os_family == "RedHat"
roles:
- role: ansible-role-nginx
vars:
2020-06-04 13:05:38 +02:00
nginx_debug_output: true
nginx_version: "{{ version }}"
2020-06-04 13:05:38 +02:00
nginx_logrotate_conf_enable: true
nginx_logrotate_conf:
paths:
- "/var/log/nginx/*.log"
options:
- daily
- missingok
- rotate 14
- compress
- delaycompress
- notifempty
- sharedscripts