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]
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
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]
**