Check Debian Buster

- Bypasses Ansible issue
pull/37/head
Emilien Mantel 2019-04-12 09:37:17 +02:00
parent 94a5a6c37a
commit 9ba5719b0d
1 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,10 @@
---
- name: SET_FACT | Bypass https://github.com/ansible/ansible/issues/19874
set_fact:
ansible_distribution_release: 'buster'
when: ansible_facts.distribution_major_version == "buster/sid"
- name: APT | Update cache
apt:
update_cache: yes
@ -10,14 +15,14 @@
apt:
pkg: openssl
state: latest
default_release: "{{ ansible_lsb.codename + '-backports' }}"
default_release: "{{ ansible_distribution_release + '-backports' }}"
when: nginx_backports
- name: APT | Install nginx and dependencies
apt:
pkg: "{{ nginx_apt_package }}"
state: present
default_release: "{{ ansible_lsb.codename + '-backports' if nginx_backports else ansible_lsb.codename }}"
default_release: "{{ ansible_distribution_release + '-backports' if nginx_backports else ansible_distribution_release }}"
- name: APT | Install nginx modules
apt: