qiyutech.core.check_role_args module – 检查当前的变量是否满足 role 的需要¶
备注
This module is part of the qiyutech.core collection (version 1.0.0).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install qiyutech.core.
To use it in a playbook, specify: qiyutech.core.check_role_args.
1.0.0 新版功能: of qiyutech.core
Synopsis¶
这个模块会检查当前执行 role 的 vars/main.yml 或者 vars/main.yaml 文件中所有的变量是否都存在
这个模块仅允许在 role 中运行 (直接从 playbook 中调用会失败)
备注
This module has a corresponding action plugin.
Parameters¶
Parameter |
Comments |
|---|---|
排除字段 不需要检查的字段有哪些 |
Notes¶
备注
这个模块不支持 Windows 系统
See Also¶
参见
- ansible.builtin.assert
The official documentation on the ansible.builtin.assert module.
Examples¶
- name: 检查参数是否满足要求
qiyutech.core.check_role_args: