Fixed some things to make it work:

This commit is contained in:
Werner Dijkerman
2020-08-01 17:54:49 +02:00
parent a5dc1b8de5
commit 998ad25059
2 changed files with 14 additions and 4 deletions

View File

@ -41,9 +41,9 @@ jobs:
image: geerlingguy/docker-debian9-ansible:latest
- container: debian8
image: geerlingguy/docker-debian8-ansible:latest
- container: opensuse-leap
image: wdijkerman/molecule-systemd-leap
command: /sbin/init
# - container: opensuse-leap
# image: wdijkerman/molecule-systemd-leap
# command: /sbin/init
steps:
- name: Check out code

View File

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