ansible-nginx/tasks/install/Debian.yml

28 lines
829 B
YAML
Raw Normal View History

2016-01-12 00:20:42 +07:00
---
2019-04-23 14:28:00 +07:00
- name: SET_FACT | Bypass https://github.com/ansible/ansible/issues/19874
2021-09-01 16:58:39 +07:00
ansible.builtin.set_fact:
2019-04-23 14:28:00 +07:00
ansible_distribution_release: 'buster'
when: ansible_facts.distribution_major_version == "buster/sid"
2016-03-07 17:59:26 +07:00
- name: APT | Update cache
2021-09-01 16:58:39 +07:00
ansible.builtin.apt:
2021-09-01 16:21:12 +07:00
update_cache: true
2017-07-27 17:21:10 +07:00
cache_valid_time: 3600
2016-12-08 23:34:59 +07:00
changed_when: false
2016-01-12 00:20:42 +07:00
- name: APT | Install nginx and dependencies
2021-09-01 16:58:39 +07:00
ansible.builtin.apt:
2017-07-27 17:21:10 +07:00
pkg: "{{ nginx_apt_package }}"
2023-05-31 14:04:30 +07:00
default_release: "{{ ansible_distribution_release + '-backports' if (nginx_backports and ansible_distribution == 'Debian') else ansible_distribution_release }}"
2016-01-12 00:20:42 +07:00
2017-12-15 01:41:05 +07:00
- name: APT | Install nginx modules
2021-09-01 16:58:39 +07:00
ansible.builtin.apt:
pkg: "{{ nginx_module_packages }}"
2017-12-15 01:41:05 +07:00
state: present
- name: APT | Install passlib lib
2021-09-01 16:58:39 +07:00
ansible.builtin.apt:
pkg: "python3-passlib"
2017-07-27 17:21:10 +07:00
state: present