mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
Fixing linting errors and increment version
Linting errors: - Use FQCN for builtin actions. (fail -> ansible.builtin.fail) - line too long (175 > 170 characters) - trailing spaces increment version for simple version check
This commit is contained in:
parent
057533f89c
commit
db0da06c08
2 changed files with 7 additions and 5 deletions
|
@ -17,8 +17,10 @@
|
||||||
when: not ansible_check_mode
|
when: not ansible_check_mode
|
||||||
|
|
||||||
- name: "Fail if running in check mode without versions set."
|
- name: "Fail if running in check mode without versions set."
|
||||||
fail:
|
ansible.builtin.fail:
|
||||||
msg: "You are running this playbook in check mode : please set the gitea version with gitea_version, the URI module cannot load the latest version while in this mode."
|
msg: |
|
||||||
|
"You are running this playbook in check mode:
|
||||||
|
Please set the Gitea version with the variable 'gitea_version', because the URI module cannot detect the latest version in this mode."
|
||||||
when: ansible_check_mode and ( gitea_version not defined )
|
when: ansible_check_mode and ( gitea_version not defined )
|
||||||
|
|
||||||
- name: "Set fact latest gitea release"
|
- name: "Set fact latest gitea release"
|
||||||
|
|
|
@ -56,5 +56,5 @@ transfer_custom_footer:
|
||||||
- 'files/gitea_footer/extra_links_footer.tmpl'
|
- 'files/gitea_footer/extra_links_footer.tmpl'
|
||||||
- 'files/extra_links_footer.tmpl'
|
- 'files/extra_links_footer.tmpl'
|
||||||
|
|
||||||
playbook_version_number: 37 # should be int
|
playbook_version_number: 38 # should be int
|
||||||
playbook_version_path: 'do1jlr.gitea.version'
|
playbook_version_path: 'do1jlr.gitea.version'
|
||||||
|
|
Loading…
Reference in a new issue