Skip to content

Instantly share code, notes, and snippets.

@samdoran
Last active April 16, 2018 20:47
Show Gist options
  • Select an option

  • Save samdoran/403cab0d983ce0632441d2c4938079b8 to your computer and use it in GitHub Desktop.

Select an option

Save samdoran/403cab0d983ce0632441d2c4938079b8 to your computer and use it in GitHub Desktop.
PLAY [localhost] *******************************************************************************************
TASK [debug] ***********************************************************************************************
[WARNING]: Unable to find 'files/food.txt' in expected paths (use -vvvvv to see paths)
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'Display' object has no attribute 'log'
fatal: [localhost]: FAILED! => {"msg": "Unexpected failure during module execution.", "stdout": ""}
PLAY RECAP *************************************************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=1
- hosts: localhost
connection: local
gather_facts: no
become: yes
tasks:
- debug:
msg: Content is {{ lookup('file', 'files/food.txt', errors='ignore') | default('DEFAULT', true) }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment