ansible-role-nginx/molecule/default/playbook.yml
Alessandro Fael Garcia 41aeda300d
Add option to specify the version of NGINX to install (#177)
And remove outdated Debian Jessie Molecule tests
2019-11-03 15:07:38 +01:00

17 lines
452 B
YAML

---
- name: Converge
hosts: all
pre_tasks:
- name: "Set repo if Debian"
set_fact:
version: "=1.17.4-1~{{ ansible_distribution_release }}"
when: ansible_os_family == "Debian"
- name: "Set repo if RedHat"
set_fact:
version: "-1.17.4-1.el{{ ansible_distribution_major_version }}.ngx"
when: ansible_os_family == "RedHat"
roles:
- role: ansible-role-nginx
vars:
nginx_version: "{{ version }}"