Re: [ansible-project] Custom Fact - Drill down into each variable

2017-07-04 Thread Anfield
Thanks. It works now Changed the playbook line to this and it works fine -> debug: msg="Custom facts are {{ansible_local.preference.general.material}}" Output - PLAY [localhost] *** TASK [Gathering Facts]

Re: [ansible-project] Custom Fact - Drill down into each variable

2017-07-04 Thread Kai Stian Olstad
On 04.07.2017 19:58, Anfield wrote: Created a custom fact which only seems to work when not executable - etc/ansible/facts.d/preference.fact [new facts] material = concrete structure = square I highly recommend against using spaces in fact keys. You must likely will have a lot of problems if

[ansible-project] Custom Fact - Drill down into each variable

2017-07-04 Thread Anfield
Created a custom fact which only seems to work when not executable - etc/ansible/facts.d/preference.fact [new facts] material = concrete structure = square When the preference.fact is set to executable I get the following error - TASK [Gathering Facts]