mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-03-14 10:32:10 +07:00
Split apt update cache (fix install when cache is outdated)
This commit is contained in:
@@ -1,11 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
- name: APT | Update cache
|
||||||
|
apt: >
|
||||||
|
update_cache=yes
|
||||||
|
cache_valid_time=3600
|
||||||
|
|
||||||
- name: APT | Install nginx and dependencies
|
- name: APT | Install nginx and dependencies
|
||||||
apt: >
|
apt: >
|
||||||
pkg={{ nginx_apt_package }}
|
pkg={{ nginx_apt_package }}
|
||||||
state=present
|
state=present
|
||||||
update_cache=yes
|
|
||||||
cache_valid_time=3600
|
|
||||||
default_release={{ ansible_distribution_release + '-backports' if nginx_backports else ansible_distribution_release }}
|
default_release={{ ansible_distribution_release + '-backports' if nginx_backports else ansible_distribution_release }}
|
||||||
|
|
||||||
- name: APT | Install python-passlib
|
- name: APT | Install python-passlib
|
||||||
|
|||||||
Reference in New Issue
Block a user