mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Make it work to pass the ci
This commit is contained in:
@ -1,22 +1,4 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
pre_tasks:
|
|
||||||
- name: "Installing which on CentOS"
|
|
||||||
yum:
|
|
||||||
name: which
|
|
||||||
state: present
|
|
||||||
when:
|
|
||||||
- ansible_os_family == 'RedHat'
|
|
||||||
|
|
||||||
- name: "Installing wget on Debian"
|
|
||||||
apt:
|
|
||||||
name: "{{ item }}"
|
|
||||||
state: present
|
|
||||||
when:
|
|
||||||
- ansible_os_family == 'Debian'
|
|
||||||
with_items:
|
|
||||||
- wget
|
|
||||||
- gpg
|
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: ansible-telegraf
|
- role: ansible-telegraf
|
||||||
|
19
molecule/default/prepare.yml
Normal file
19
molecule/default/prepare.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: "Installing which on CentOS"
|
||||||
|
yum:
|
||||||
|
name: which
|
||||||
|
state: present
|
||||||
|
when:
|
||||||
|
- ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
|
- name: "Installing wget on Debian"
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- wget
|
||||||
|
- gpg
|
||||||
|
state: present
|
||||||
|
when:
|
||||||
|
- ansible_os_family == 'Debian'
|
Reference in New Issue
Block a user