/
notes
35 lines (20 loc) · 972 Bytes
/
notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Ansible
===
Empathy slack
---
Python 2.7 windows
* https://stackoverflow.com/questions/32597209/python-not-working-in-the-command-line-of-git-bash
* https://stackoverflow.com/questions/68113634/winpty-python-exe-whenever-you-enter-python
Windows tmux
---
* https://gist.github.com/DeanPDX/acff533cff0cfbda2761d1e62e8cb1a7
Managing hosts (control/node in main.yml)
---
"Keep hosts paterns static, but provide additional inventory configs with -i that generate hosts in the desired groups"
"ansible-doc -t inventory constructed # is handy if you want to group hosts based on whatever expression"
ansible output in json
---
"see stdout_callback"
"https://devops.stackexchange.com/questions/12213/how-do-i-make-ansible-playbook-log-its-output-in-a-machine-readable-format-like"
"https://docs.ansible.com/ansible/latest/plugins/callback.html#plugin-list"
"and i vote for 'ara' if you go some step further w/ automatic (machine readable) output collecting"