
Resolve "fix: ci lint"

Closes #12 (closed)
Merge request reports
Activity
added Doing label
assigned to @arthur.boudreault
Thanks to @thomas_michel suggestions, I'm going to change the way Ansible tests are done.
Edited by Arthur BOUDREAULTSome issues have been declared by Ansible-lint:
-
literal-compare: Don't compare to literal True/False -> FROM :
when: ynh_file_install.stat.exists == False
towhen: not ynh_file_install.stat.exists
TESTS OK -
no-changed-when: Commands should not change things if nothing needs doing -> YNH Diagnosis should be run after initial installation but then it shouldn't need to run at every execution of the playbook (more info here ) ADDED a check : Run the command if ynh isn't installed yet (first role run), otherwise skip this action (following role runs).
name: Run first Yunohost diagnosis ansible.builtin.command: yunohost diagnosis run when: not ynh_file_install.stat.exists
Edited by Arthur BOUDREAULT-
added 12 commits
-
669d3ebb...abe8ccb9 - 9 commits from branch
master
-
fcf734b1 -
fix: [201] Trailing whitespace REMOVED -
6afdb77b -
fix: [601] Don't compare to literal True/False FIXED -
1bf97177 -
fix: meta-no-tags: Use 'galaxy_tags' rather than 'categories' REPLACED + role in Debian 10 only
Toggle commit list-
669d3ebb...abe8ccb9 - 9 commits from branch
added Need review label and removed Doing label
- Resolved by Arthur BOUDREAULT
- Resolved by Arthur BOUDREAULT
added Doing label and removed Need review label