当使用 template模块和with_fileglob 拷贝模板文件时间,相对目录为 files/
fileglob – list files matching a pattern
https://docs.ansible.com/ansible/latest/plugins/lookup/fileglob.html
Ansible with_fileglob is skipping
https://stackoverflow.com/questions/21627664/ansible-with-fileglob-is-skipping
with_fileglob looks in "files" dir when using template module
https://github.com/ansible/ansible/issues/27033
Working With Playbooks » Loops
https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html#looping-over-fileglobs
ansible-playbook去掉特定主机组或主机
https://blog.csdn.net/jihu0412/article/details/80175758
当使用when条件判断时,变量引用不需要加 {{ }}
ansible - when statements should not include jinja2 templating delimiters
https://stackoverflow.com/questions/42673045/ansible-when-statements-should-not-include-jinja2-templating-delimiters
ansible – 模板模块可以处理多个模板/目录吗?
https://codeday.me/bug/20190711/1435544.html
https://xbuba.com/questions/41667864
filetree – recursively match all files in a directory tree
https://docs.ansible.com/ansible/latest/plugins/lookup/filetree.html
Can the templates module handle multiple templates / directories?
https://stackoverflow.com/questions/41667864/can-the-templates-module-handle-multiple-templates-directories
How to evaluate a when condition for Ansible task
https://stackoverflow.com/questions/34429842/how-to-evaluate-a-when-condition-for-ansible-task
How do I exit Ansible playbook without error on a condition
https://stackoverflow.com/questions/36451793/how-do-i-exit-ansible-playbook-without-error-on-a-condition
Ansible syntax for regex_search using variable to match
https://serverfault.com/questions/879313/ansible-syntax-for-regex-search-using-variable-to-match
https://stackoverflow.com/questions/34429842/how-to-evaluate-a-when-condition-for-ansible-task
Docs » User Guide » Working With Playbooks » Templating (Jinja2) » Tests
https://docs.ansible.com/ansible/latest/user_guide/playbooks_tests.html
Ansible: 探讨模块 vars 和 set_fact 逻辑上的区别
https://zhuanlan.zhihu.com/p/149608103
ansible.builtin.add_host – Add a host (and alternatively a group) to the ansible-playbook in-memory inventory
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/add_host_module.html
https://docs.ansible.com/ansible/2.5/modules/add_host_module.html
验证Ansible库存文件中某个组的主机数量
https://www.it1352.com/1930404.html