Hi list,

I want to use tags in my playbook as variables.

---
- hosts: local
  user: root
  tasks:
    - name: get tag
      debug: msg="{{ tags }}"
      tags: doit

and run

  $ ansible-playbook -i hosts tag_test.yml  -t doit

but I got

TASK: [get tag] ******************************************************
fatal: [local] => One or more undefined variables: 'tags' is undefined


Is there a way to use tags as variables?

Thanks,
WAKAYAMA Shirou

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to