From 1c24727291e84ae428d562419f09bea9c6f47bec Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 10 May 2021 22:24:13 +0200 Subject: [PATCH] Update versionscheck mechanism --- tasks/versioncheck.yml | 8 +++----- vars/main.yml | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) 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: diff --git a/vars/main.yml b/vars/main.yml index 65032cc..5e580be 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,4 +1,4 @@ --- # versionscheck -playbook_version_number: 23 # should be a integer +playbook_version_number: 24 # should be a integer playbook_version_path: 'do1jlr.role-acmetool.version'