semaphore icon indicating copy to clipboard operation
semaphore copied to clipboard

Problem: Task Template ARGS Tags Not Working

Open rbh1981 opened this issue 1 year ago • 7 comments

Issue

Using --tags in 'Args' section in Task Templates causes job to fail

Impact

Web-Frontend (what users interact with), Ansible (task execution)

Installation method

Package

Database

BoltDB

Browser

Firefox

Semaphore Version

2.10.22-e44910d-1721658299

Ansible Version

No response

Logs & errors

Screenshot from 2024-08-04 08-24-52

Manual installation - system information

nginx

Configuration

Screenshot from 2024-08-04 08-25-31

Additional information

Adding the arg --check to the task template seems to work but --tags does not. Running the playbook from the commands line with --tags works as expected.

rbh1981 avatar Aug 04 '24 14:08 rbh1981

Hey,

it's working for me with the Arg "-t users".

MascHman avatar Aug 09 '24 08:08 MascHman

Same issue here, using -t works but I would also like to use --skip-tags

m-vandeneede avatar Aug 13 '24 12:08 m-vandeneede

Agree. The old style of specifying additional args as json array seemed to work without issue. The new UI for specifying additional args seems limited.

rbh1981 avatar Aug 18 '24 16:08 rbh1981

Hi all, thank you! Fix be fixed soon.

fiftin avatar Aug 21 '24 11:08 fiftin

What if try --tags=users? Or you should use 2 items --tags, users.

fiftin avatar Aug 21 '24 11:08 fiftin

What if try --tags=users? Or you should use 2 items --tags, users.

Thanks for the tip. Separating args for '--tags' and tag name does work as expected. I guess it is just a misunderstanding on how args need to be used in the UI?

Screenshot shows working tags as recommended:

Screenshot from 2024-08-21 16-46-16

rbh1981 avatar Aug 21 '24 22:08 rbh1981

I can confirm that --tags=users also works.

powerpaul17 avatar Aug 22 '24 08:08 powerpaul17

Hi @fiftin, do you have an ETA for fixing this? Once fixed, it'll unlock wonderful things for us... at the moment we have to duplicate dozens of playbooks...! Thanks

richard-foster avatar Sep 18 '24 12:09 richard-foster

I can confirm that --skip-tags and as individual entries just works as if executed in CLI. This probably needs to be communicated more exactly.

derdems avatar Dec 11 '24 15:12 derdems