myos: {
configdir: "/path/to/directory",
configfile: "filename"
}
my_configdir: "{{ansible_facts.distribution}}.configdir"
my_configfile: "{{ansible_facts.configfile}}.configfile"
stat:
path: "{{my_configdir}}/{{my_configfile}}"
register: result
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/AM5PR0602MB2771EDE997589AD46EC3BB519EA50%40AM5PR0602MB2771.eurprd06.prod.outlook.com.
Joe Langdon
Sometimes when you think life is kicking you in the ass, it's actually just moving you quickly to a better place.
Hindsight is always 20:20 😊
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/ruVlyYr06d8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL_P1G9K-%3DmH_g_3O%2BzzH1TKNM9dMtd9mHmsvO-XjUh1x_tMbg%40mail.gmail.com.