Commit Graph

6 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov
43032d25cf Fix linters and metadata
With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.

With that we also update metdata to reflect current state.

Change-Id: I6b4b83ec472d4a3de9139eb4e7c7b2dc8a9fc260
2023-07-14 05:48:27 +00:00
Dmitriy Rabotyagov
0e1abb2858 Remove warn argument for command/shell
Since ansible-core 2.14 you can't use warn as module argument.

Instead, a tag is used to instruct ansible-lint to
supress alerts.

Change-Id: I4ceeee4bf6c1020851824450ec7b30f6d14573f3
2023-06-30 16:55:59 +02:00
Jonathan Rosser
43d785eff2 Improve python version detection when symlinking libraries
The previous code assumed that the major version ('python3') could be
obtained by removing the last two characters from 'python3.X. This
does not work for pyhton releases 3.10 and onward, so this patch
changes the code to split the string on '.' and take the first portion.

Change-Id: I771cac2fc9badb61c22cfde65775aee97c31f89c
2022-04-21 07:52:16 +01:00
Jonathan Rosser
2a533ed185 Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: Iec4a2a8c5251ddccedc4310c26c8fd2ca8bdc913
2021-02-25 12:24:01 +00:00
Jonathan Rosser
bd63b90aeb Factor out unnecessary set_fact
These varaibles are not required to be persisted as facts, so
convert them from facts to task vars to save a task execution.

Change-Id: Ibaae18199295761f8b52da31cccb9fa8ec40558b
2021-02-08 10:39:34 +00:00
Dmitriy Rabotyagov
ab68e94425 Import wheels build only when necessary
Skipping tasks take time. It's faster not to import things we don't need

We also move symlinking to the separate task that can be inlcuded.

Change-Id: I20a5cda421910df9aaca3aacb3f3e088a1fd2938
2021-02-05 13:29:16 +02:00