Install only neccasaryu packages based on os to install
This commit is contained in:
parent
89617aac55
commit
bb667da591
@ -49,12 +49,14 @@
|
|||||||
pacman:
|
pacman:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
force: true
|
force: true
|
||||||
name:
|
name: "{{ item.name }}"
|
||||||
- glibc
|
|
||||||
- debootstrap
|
|
||||||
- debian-archive-keyring
|
|
||||||
- dnf
|
|
||||||
state: latest
|
state: latest
|
||||||
|
loop:
|
||||||
|
- { name: 'glibc' }
|
||||||
|
- { name: 'dnf', os: ['almalinux', 'rhel9', 'rhel8'] }
|
||||||
|
- { name: 'debootstrap', os: ['debian11', 'debian12'] }
|
||||||
|
- { name: 'debian-archive-keyring', os: ['debian11', 'debian12'] }
|
||||||
|
when: "'os' not in item or os in item.os"
|
||||||
retries: 4
|
retries: 4
|
||||||
delay: 15
|
delay: 15
|
||||||
|
|
||||||
@ -69,4 +71,4 @@
|
|||||||
- name: Create RHEL repository file
|
- name: Create RHEL repository file
|
||||||
template:
|
template:
|
||||||
src: '{{ os | lower }}.repo.j2'
|
src: '{{ os | lower }}.repo.j2'
|
||||||
dest: '/etc/yum.repos.d/{{ os | lower }}.repo'
|
dest: '/etc/yum.repos.d/{{ os | lower }}.repo'
|
||||||
|
Loading…
Reference in New Issue
Block a user