summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorsirkubax <muszynski@so1.net>2018-01-01 21:54:39 +0100
committersirkubax <muszynski@so1.net>2018-01-01 21:54:39 +0100
commit2e7311c4252ff13e4c604c28110418e92ab0ee75 (patch)
tree1649143bf9239acf5da934fb21ea0e163d722159
parent275c6eb59f3af0993314bfd2d090cfef724da569 (diff)
update
-rw-r--r--ansible.html.markdown9
1 files changed, 6 insertions, 3 deletions
diff --git a/ansible.html.markdown b/ansible.html.markdown
index 82e3f946..0f349c30 100644
--- a/ansible.html.markdown
+++ b/ansible.html.markdown
@@ -467,15 +467,18 @@ fact_caching_timeout = 86400
```
I like to use `jsonfile` as my backend. It allows to use another project
-`ansible-cmdb` [github](https://github.com/fboender/ansible-cmdb) that generates a HTML page of your inventory resources. A nice 'free' addition!
+`ansible-cmdb` [(project on github)](https://github.com/fboender/ansible-cmdb) that generates a HTML page of your inventory resources. A nice 'free' addition!
-### debugging ansible
+### debugging ansible [chapter in progres]
When your job fails - it is good to be effective with debugging.
1. Increase verbosiy by using multiple -v **[ -vvvvv]**
-2. If variable is undefined
+2. If variable is undefined
+ - grep -R path_of_your_inventory -e missing_variable
3. If variable (dictionary or a list) is undefined
+ - grep -R path_of_your_inventory -e missing_variable
4. Jinja template debug
+5. Strange behaviour - try to run the code 'at the destination'
### Infrastructure as a code - what about Ansible
You already know, that ansible-vault allow you to store your poufne data along with your code (in repository). You can go further - and define your ansible installation and configuration as-a-code.