From dd2bc19a9ade464960a3bf42c34ab40a9041e34c Mon Sep 17 00:00:00 2001 From: L3D Date: Tue, 7 Sep 2021 15:04:43 +0200 Subject: [PATCH] update test and versionscheck --- .github/workflows/ansible-molecule.yml | 14 ++++++++++++++ tasks/versioncheck.yml | 8 +++----- 2 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/ansible-molecule.yml diff --git a/.github/workflows/ansible-molecule.yml b/.github/workflows/ansible-molecule.yml new file mode 100644 index 0000000..ec89550 --- /dev/null +++ b/.github/workflows/ansible-molecule.yml @@ -0,0 +1,14 @@ +--- +name: molecule testing + +# yamllint disable-line rule:truthy +on: push + +jobs: + molecule: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + path: "${{ github.repository }}" + - uses: gofrolist/molecule-action@v2 diff --git a/tasks/versioncheck.yml b/tasks/versioncheck.yml index dca3e47..5128cc8 100644 --- a/tasks/versioncheck.yml +++ b/tasks/versioncheck.yml @@ -1,4 +1,7 @@ --- +# Copyright (c) 2021 L3D +# this file is released with the MIT license. +# License: https://github.com/roles-ansible/ansible_role_template/blob/main/LICENSE - name: Create directory for versionscheck become: true ansible.builtin.file: @@ -32,11 +35,6 @@ when: - playbook_version.content|default("Mgo=")|b64decode|int - 1 >= playbook_version_number|int and submodules_versioncheck|bool -- name: check if '/etc/ansible-version/' is empty - ansible.builtin.find: - paths: '/etc/ansible-version/' - register: filesFound - - name: write new version to remote disk become: true ansible.builtin.copy: