Last active
August 29, 2015 14:10
-
-
Save ateoto/758b4a1f16793270e608 to your computer and use it in GitHub Desktop.
Template Error in 1.8
This file contains 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: all | |
tasks: | |
- name: Determining database status | |
shell: "docker inspect --format '{% raw %}{{ .State.Running }}{% endraw %}' mongodb" | |
register: db_up | |
- debug: var=db_up |
This file contains 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 [all] ******************************************************************** | |
GATHERING FACTS *************************************************************** | |
ok: [topbox-cd] | |
TASK: [Determining database status] ******************************************* | |
changed: [topbox-cd] | |
TASK: [debug var=db_up] ******************************************************* | |
fatal: [topbox-cd] => template error while templating string: unexpected '.' | |
FATAL: all hosts have already failed -- aborting | |
PLAY RECAP ******************************************************************** | |
to retry, use: --limit @/Users/mmccants/backup.retry | |
topbox-cd : ok=2 changed=1 unreachable=1 failed=0 | |
This file contains 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
ubuntu@ip-0-0-0-0:~$ docker inspect --format '{{ .State.Running }}' mongodb | |
true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment