Skip to content

Commit

Permalink
Stores platform paths as facts
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Feb 23, 2024
1 parent db60f10 commit dcd670e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tasks/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,15 @@
recurse: true
register: find_mte_res
when: ansible_os_family != "Windows"
- name: Stores platform paths as facts
block:
- name: Sets fact

Check failure on line 27 in tasks/verify.yml

View workflow job for this annotation

GitHub Actions / Pre-commit

fqcn[action-core]

Use FQCN for builtin module actions (set_fact).
set_fact:
metatrader: >-
{ '{{ metatrader_version | int }}': {'path': '{{ find_mt_res.files[0].path | dirname }}'}}

Check failure on line 30 in tasks/verify.yml

View workflow job for this annotation

GitHub Actions / Pre-commit

30:81 [line-length] line too long (100 > 80 characters)
when:
- find_mt_res is defined
- find_mt_res.files | length > 0
- metatrader_version is defined
- debug:

Check failure on line 35 in tasks/verify.yml

View workflow job for this annotation

GitHub Actions / Pre-commit

fqcn[action-core]

Use FQCN for builtin module actions (debug).

Check failure on line 35 in tasks/verify.yml

View workflow job for this annotation

GitHub Actions / Pre-commit

name[missing]

All tasks should be named.
var: hostvars[inventory_hostname]['metatrader']

0 comments on commit dcd670e

Please sign in to comment.