mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Added requirements file;Removed some collection stuff
This commit is contained in:
10
.github/workflows/telegraf.yml
vendored
10
.github/workflows/telegraf.yml
vendored
@ -9,6 +9,7 @@ on:
|
||||
- 'molecule/**'
|
||||
- 'tasks/**'
|
||||
- 'templates/**'
|
||||
- '.github/workflows/telegraf.yml'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'defaults/**'
|
||||
@ -18,6 +19,7 @@ on:
|
||||
- 'molecule/**'
|
||||
- 'tasks/**'
|
||||
- 'templates/**'
|
||||
- '.github/workflows/telegraf.yml'
|
||||
jobs:
|
||||
molecule:
|
||||
runs-on: ubuntu-18.04
|
||||
@ -55,14 +57,6 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r molecule/requirements.txt
|
||||
|
||||
- name: Build the collection
|
||||
run: |
|
||||
collection_file=$( basename $(ansible-galaxy collection build -f | awk -F" " '{print $NF}'))
|
||||
echo "::set-env name=COLLECTION_FILE::$collection_file"
|
||||
|
||||
- name: Install the collection
|
||||
run: ansible-galaxy collection install $COLLECTION_FILE
|
||||
|
||||
- name: Run role tests
|
||||
run: >-
|
||||
MY_MOLECULE_CONTAINER=${{ matrix.molecule_distro.container }}
|
||||
|
10
molecule/requirements.txt
Normal file
10
molecule/requirements.txt
Normal file
@ -0,0 +1,10 @@
|
||||
# Install CI dependencies for the Zabbix Roles
|
||||
ansible==2.9.11
|
||||
ansible-lint==4.2.0
|
||||
docker==4.2.1
|
||||
molecule==3.0.4
|
||||
netaddr==0.7.19
|
||||
testinfra==5.2.1
|
||||
zabbix-api==0.5.4
|
||||
ipaddr==2.2.0
|
||||
ipaddress==1.0.23
|
Reference in New Issue
Block a user