Skip to content

Commit

Permalink
update ansible version requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
DO1JLR committed May 10, 2021
1 parent 7a3d3d5 commit 094c003
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 3 additions & 5 deletions tasks/versioncheck.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
# Copyright (c) 2021 L3D <l3d@c3woc.de>
# 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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 094c003

Please sign in to comment.