From 094c0038d4ad77c752ce5226ce5c6d5451f8cd2f Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 10 May 2021 22:49:14 +0200 Subject: [PATCH] update ansible version requirement --- meta/main.yml | 2 +- tasks/versioncheck.yml | 8 +++----- vars/main.yml | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index 036be55..1c0ed0a 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -4,7 +4,7 @@ galaxy_info: author: do1jlr description: Ansible role to configure and deploy gitea, a painless self-hosted Git service. license: "BSD-3-Clause" - min_ansible_version: 2.9.8 + min_ansible_version: 2.11 github_branch: main platforms: - name: Debian 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 ade6511..b2a1747 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -20,5 +20,5 @@ gitea_variables: paths: - 'vars' -playbook_version_number: 13 # should be int +playbook_version_number: 14 # should be int playbook_version_path: 'do1jlr.gitea.version'