Am trying to execute the ansible role via commandline option but not able to call/execute only required tagged tasks within called role task. if i don't include the tags in the commandline then it works as expected but i don't want execute full role instead few tasks within the role from commandline.
here is the commandline :
ansible all -i hosts --limit=localhost -e "user_dir=/home/tool_user app_targz_version=app3e-linux-3.1.0.tar.gz test_user_token=16st3!6bc@" -m include_role -a "name=app3" -e '{"apply": [{"tags": 'app_install', 'app_config', 'app_start'"}]}' -v
so, from above commandline, -e option i used to call the tags but this is not working.
since if I execute above command, it executes full role tasks completely so clearly called tagged didn't work and am 100% sure, those tags are present in the role respective tasks.
your help much appreacited.