Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要从使用 ansible uri 模块加载的 html 页面获取特定的元属性值。
如何在 ansible 变量中获取此属性?
您可以使用自定义过滤器插件:https ://docs.ansible.com/ansible/developing_plugins.html#filter-plugins
一些例子可以在这里找到:https ://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/filter/core.py