Skip to content

Commit 32d5410

Browse files
committed
Force Yum cache refresh
1 parent c64f900 commit 32d5410

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.8.1 (Unreleased)
4+
5+
BUG FIXES:
6+
7+
Always refresh the `yum` cache.
8+
39
## 0.8.0 (April 6, 2022)
410

511
BREAKING CHANGES:

tasks/dos/install-redhat.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
mode: 0644
2626
when: nginx_app_protect_dos_manage_repo | bool
2727

28+
- name: (CentOS/RHEL) Force Yum cache refresh
29+
command: yum clean metadata
30+
changed_when: false
31+
2832
- name: (CentOS/RHEL) {{ nginx_app_protect_dos_setup | capitalize }} NGINX App Protect DoS
2933
ansible.builtin.yum:
3034
name: app-protect-dos{{ (nginx_app_protect_dos_state == 'absent') | ternary(',nginx-plus-module-appprotectdos', '') }}

tasks/waf/install-redhat.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
- (nginx_app_protect_waf_install_signatures | bool) or (nginx_app_protect_waf_install_threat_campaigns | bool)
4444
- nginx_app_protect_waf_manage_repo | bool
4545

46+
- name: (Amazon Linux/CentOS/RHEL) Force Yum cache refresh
47+
command: yum clean metadata
48+
changed_when: false
49+
4650
- name: (Amazon Linux/CentOS/RHEL) {{ nginx_app_protect_waf_setup | capitalize }} NGINX App Protect WAF
4751
ansible.builtin.yum:
4852
name: app-protect{{ (nginx_app_protect_waf_state == 'absent') | ternary(',app-protect-compiler,app-protect-engine,app-protect-plugin,nginx-plus-module-appprotect', '') }}

0 commit comments

Comments
 (0)