Added/removed OS'es for Molecule (#167)

This commit is contained in:
Werner Dijkerman
2023-01-30 19:26:38 +01:00
committed by GitHub
parent 8c665829e6
commit 8ac7c14045
2 changed files with 21 additions and 5 deletions

View File

@ -10,10 +10,21 @@
- ansible_os_family == 'RedHat'
- name: "Apt get update"
shell: apt-get update && apt-get install -y python-apt
shell: apt-get update
when:
- ansible_os_family == 'Debian'
- name: "Installing packages on Debian"
apt:
name:
- wget
- "{{ 'gnupg-agent' if ansible_distribution_major_version in ['8', '18', '16'] else 'gpg-agent' }}"
update_cache: True
state: present
when:
- ansible_os_family == 'Debian'
- ansible_distribution_major_version not in [9, 10]
- name: "Installing packages on Debian"
apt:
name:
@ -24,6 +35,7 @@
state: present
when:
- ansible_os_family == 'Debian'
- ansible_distribution_major_version in [9, 10]
- name: "Installing packages on Suse"
zypper: