Compare commits
2 Commits
c9df312d68
...
1c6dec03d3
| Author | SHA1 | Date | |
|---|---|---|---|
| 1c6dec03d3 | |||
| fdb01b4428 |
25
update.yml
25
update.yml
@@ -5,23 +5,24 @@
|
|||||||
become_method: sudo
|
become_method: sudo
|
||||||
become_user: root
|
become_user: root
|
||||||
tasks:
|
tasks:
|
||||||
- name: Update apt cache (tolerate repo codename changes)
|
- name: Update apt cache (allow release info changes)
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
cache_valid_time: 3600
|
cache_valid_time: 3600
|
||||||
environment:
|
force_apt_get: yes
|
||||||
APT::Get::AllowReleaseInfoChange: "true"
|
# Use apt options to allow codename/origin/suite changes safely
|
||||||
APT::Get::AllowReleaseInfoChange::Origin: "true"
|
extra_args: >
|
||||||
APT::Get::AllowReleaseInfoChange::Suite: "true"
|
-o Acquire::AllowReleaseInfoChange::Suite=true
|
||||||
APT::Get::AllowReleaseInfoChange::Codename: "true"
|
-o Acquire::AllowReleaseInfoChange::Codename=true
|
||||||
|
-o Acquire::AllowReleaseInfoChange::Origin=true
|
||||||
|
|
||||||
- name: Upgrade all packages (tolerate repo codename changes)
|
- name: Upgrade all packages (allow release info changes)
|
||||||
apt:
|
apt:
|
||||||
upgrade: dist
|
upgrade: dist
|
||||||
autoremove: yes
|
autoremove: yes
|
||||||
autoclean: yes
|
autoclean: yes
|
||||||
environment:
|
force_apt_get: yes
|
||||||
APT::Get::AllowReleaseInfoChange: "true"
|
extra_args: >
|
||||||
APT::Get::AllowReleaseInfoChange::Origin: "true"
|
-o Acquire::AllowReleaseInfoChange::Suite=true
|
||||||
APT::Get::AllowReleaseInfoChange::Suite: "true"
|
-o Acquire::AllowReleaseInfoChange::Codename=true
|
||||||
APT::Get::AllowReleaseInfoChange::Codename: "true"
|
-o Acquire::AllowReleaseInfoChange::Origin=true
|
||||||
|
|||||||
Reference in New Issue
Block a user