mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Use Ubuntu in Molecule Test;Fix deprecation warnings
This commit is contained in:
@ -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') }}"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user