From add696bc78c13ac6cd62d988e4b796e5aa0537e9 Mon Sep 17 00:00:00 2001 From: Werner Dijkerman Date: Sat, 1 Aug 2020 16:24:03 +0200 Subject: [PATCH] Added requirements file;Removed some collection stuff --- .github/workflows/telegraf.yml | 10 ++-------- molecule/requirements.txt | 10 ++++++++++ 2 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 molecule/requirements.txt diff --git a/.github/workflows/telegraf.yml b/.github/workflows/telegraf.yml index c5174a5..ee52eee 100644 --- a/.github/workflows/telegraf.yml +++ b/.github/workflows/telegraf.yml @@ -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 }} diff --git a/molecule/requirements.txt b/molecule/requirements.txt new file mode 100644 index 0000000..416ea89 --- /dev/null +++ b/molecule/requirements.txt @@ -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