Last active
April 16, 2018 20:47
-
-
Save samdoran/403cab0d983ce0632441d2c4938079b8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - 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