2017-07-13 09:59:37 +02:00
|
|
|
---
|
|
|
|
|
2021-10-02 09:35:17 +02:00
|
|
|
- name: Backports repository is configured
|
|
|
|
include_role:
|
2019-11-29 14:00:25 +01:00
|
|
|
name: evolix/apt
|
2017-07-13 14:16:51 +02:00
|
|
|
tasks_from: backports.yml
|
|
|
|
tags:
|
2018-01-02 19:38:12 +01:00
|
|
|
- nginx
|
|
|
|
- packages
|
2017-07-13 14:16:51 +02:00
|
|
|
|
2018-07-31 16:05:47 +02:00
|
|
|
- name: Prefer Nginx packages from backports
|
|
|
|
template:
|
2017-07-13 09:59:37 +02:00
|
|
|
src: apt/nginx_preferences
|
|
|
|
dest: /etc/apt/preferences.d/999-nginx
|
|
|
|
force: yes
|
|
|
|
mode: "0640"
|
|
|
|
register: nginx_apt_preferences
|
|
|
|
tags:
|
2018-01-02 19:38:12 +01:00
|
|
|
- nginx
|
|
|
|
- packages
|
2017-07-13 09:59:37 +02:00
|
|
|
|
2021-10-02 09:35:17 +02:00
|
|
|
- name: APT cache is updated
|
2017-07-13 09:59:37 +02:00
|
|
|
apt:
|
|
|
|
update_cache: yes
|
2019-12-31 15:34:48 +01:00
|
|
|
when: nginx_apt_preferences is changed
|
2017-07-13 09:59:37 +02:00
|
|
|
tags:
|
2018-01-02 19:38:12 +01:00
|
|
|
- nginx
|
|
|
|
- packages
|