Use Ubuntu in Molecule Test;Fix deprecation warnings

This commit is contained in:
Werner Dijkerman
2018-05-19 21:14:11 +02:00
parent 19a4a44b58
commit 619b52b98a
6 changed files with 24 additions and 12 deletions

View File

@ -3,7 +3,7 @@
hosts: localhost
connection: local
gather_facts: False
# no_log: "{{ not lookup('env', 'MOLECULE_DEBUG') | bool }}"
no_log: "{{ not lookup('env', 'MOLECULE_DEBUG') | bool }}"
vars:
molecule_file: "{{ lookup('env', 'MOLECULE_FILE') }}"
molecule_ephemeral_directory: "{{ lookup('env', 'MOLECULE_EPHEMERAL_DIRECTORY') }}"

View File

@ -13,8 +13,13 @@ platforms:
image: milcom/centos7-systemd
privileged: True
- name: telegraf-debian
image: maint/debian-systemd
image: minimum2scp/systemd-stretch
privileged: True
command: /sbin/init
- name: telegraf-ubuntu
image: solita/ubuntu-systemd:bionic
privileged: True
command: /sbin/init
provisioner:
name: ansible

View File

@ -4,12 +4,19 @@
- name: "Installing which on CentOS"
yum:
name: which
state: installed
when: ansible_distribution == 'CentOS'
state: present
when:
- ansible_os_family == 'RedHat'
- name: "Installing wget on Debian"
apt:
name: wget
state: installed
when: ansible_distribution == 'Debian'
name: "{{ item }}"
state: present
when:
- ansible_os_family == 'Debian'
with_items:
- wget
- gpg
roles:
- role: ansible-telegraf