Limitations for tags in Ansible

Hi everyone, I am planning to use ansible to execute a long list of task but I would like users to select which task to execute with the help of some GUI from Python. Is there any limitations of the number of tags I can specify in the CLI?

E.g ansible-playbook example.yml --tags “configuration,packages,test1,test2,test3,test4,test5,test6,…,test100”

Will ansible be able to run all of the tags specificed in the command above?

Hi,

Is there any limitations of the number of tags I can specify
in the CLI?

E.g ansible-playbook example.yml --tags
"configuration,packages,test1,test2,test3,test4,test5,test6,...,test100"

Will ansible be able to run all of the tags specificed in the command above?

I just tested this for 15k tags in a playbook and 12k specified on the
commandline and it takes some time, but it works.

To reproduce:

cat test.tmpl
    - name: Task TASKID
      debug:
        msg: Task TASKID
      tags:
        - tagTASKID

for i in {1..15000}; do sed s/TASKID/$i/ test.tmpl >> test.yaml; done

Add the following lines to the beginning of test.yaml:

Hi Sebastian,

Thanks for your input regarding this issue, it didn’t cross my mind to write a script to generate a test.

-Derek