First, set_fact is ephemeral (only lasts for the current ansible run), your
first 2 attempts were succeeding, to see the results you can run:
 - debug: msg="systemtype:{{system_type}}"

second, the - denotes a task, so - name + - action doen't work, name is a
property of the task and has to be in the same grouping.

- name:
  action:

or

- action:
  name:

you can add this information permanently either by adding it as
group_var/host_var or you can use a file in /etc/ansible/facts.d on the
target machines

-- 
Brian Coca

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJ5XC8n2RZWqnhNv9d7eV7v5hHP_iQ%3D5oLCU0V2dGYeydsda7w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to