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
|
||||
|
||||
- name: "Fail if running in check mode without versions set."
|
||||
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."
|
||||
ansible.builtin.fail:
|
||||
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 )
|
||||
|
||||
- name: "Set fact latest gitea release"
|
||||
|
@ -29,8 +31,8 @@
|
|||
- name: "Set gitea version target (latest)"
|
||||
ansible.builtin.set_fact:
|
||||
gitea_version_target: "{{ gitea_remote_version }}"
|
||||
when: not ansible_check_mode
|
||||
when: gitea_version == "latest"
|
||||
when: not ansible_check_mode
|
||||
when: gitea_version == "latest"
|
||||
|
||||
- name: "Set gitea version target ({{ gitea_version }})"
|
||||
ansible.builtin.set_fact:
|
||||
|
|
|
@ -56,5 +56,5 @@ transfer_custom_footer:
|
|||
- 'files/gitea_footer/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'
|
||||
|
|
Loading…
Reference in a new issue