feat: various fixes
This commit is contained in:
parent
8f396d90b6
commit
89eaee1139
27 changed files with 47 additions and 74 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# apt config
|
||||
- name: "apt config"
|
||||
tags: ["apt"]
|
||||
tags: "apt"
|
||||
block:
|
||||
|
||||
# configure apt auto update
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# apt packages
|
||||
- name: "apt packages"
|
||||
tags: ["apt"]
|
||||
tags: "apt"
|
||||
block:
|
||||
|
||||
# install packages
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# manage apt sources
|
||||
- name: "manage apt sources"
|
||||
tags: ["apt"]
|
||||
tags: "apt"
|
||||
block:
|
||||
|
||||
# configure apt sources
|
||||
|
|
@ -13,10 +13,10 @@
|
|||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
notify: "apt force cache update"
|
||||
when:
|
||||
- 'ansible_os_family == "Debian"'
|
||||
- 'ansible_distribution_major_version <= "23"'
|
||||
notify: "apt force cache update"
|
||||
|
||||
# configure apt sources - proxmox list
|
||||
- name: "apt - config - configure apt sources - proxmox list"
|
||||
|
|
@ -26,10 +26,10 @@
|
|||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
notify: "apt force cache update"
|
||||
when:
|
||||
- 'ansible_os_family == "Debian"'
|
||||
- "inventory_hostname in groups['proxmox']"
|
||||
notify: "apt force cache update"
|
||||
|
||||
# configure apt sources
|
||||
- name: "apt - config - configure apt sources"
|
||||
|
|
@ -39,10 +39,10 @@
|
|||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
notify: "apt force cache update"
|
||||
when:
|
||||
- 'ansible_distribution == "Ubuntu"'
|
||||
- 'ansible_distribution_major_version >= "24"'
|
||||
notify: "apt force cache update"
|
||||
|
||||
# delete unused sources.list
|
||||
- name: "apt - config - remove old sources.list"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue