播放可能的按键的清单 [英] Ansible list of possible keys for a play
问题描述
每个模块都有一个相当说明性的文档,说明那里使用的可能的键.
Modules each have a quite descriptive documentation on possible keys used there.
有什么类似的戏吗?!我找不到清晰的可能键列表.
Is there anything similar for a play?! I could not find a clear list of possible keys.
我检查了什么
- http://docs.ansible.com/ansible/playbooks.html
- http://docs.ansible.com/ansible/playbooks_intro.html
我已经使用过的键(因此它们肯定可以工作)
Keys I have used already (so they definitely work)
-
name
-尽管未在上面列出的文档中列出 -
hosts
-
remote_user
-
tasks
-
pre_tasks
,post_tasks
-在注释中提到 -
roles
-
become
,become_method
,become_user
,become_flags
-
handlers
,force_handlers
-
ignore_errors
-在任何列表中均未找到,但有效 -
vars
,vars_prompt
,vars_files
-
gather_facts
,gather_subset
,gather_timeout
-
any_errors_fatal
-未列出 -
accelerate
,accelerate_ipv6
,accelerate_port
-
vault_password
-
max_fail_percentag
-
serial
-
strategy
-
tags
-
no_log
-
connection
-
ḟact_path
-
port
-
environment
-
check_mode
-
always_run
-
run_once
name
- though not listed in documentation listed abovehosts
remote_user
tasks
pre_tasks
,post_tasks
- mentioned in a noteroles
become
,become_method
,become_user
,become_flags
handlers
,force_handlers
ignore_errors
- did not find in any listing, but worksvars
,vars_prompt
,vars_files
gather_facts
,gather_subset
,gather_timeout
any_errors_fatal
- not listedaccelerate
,accelerate_ipv6
,accelerate_port
vault_password
max_fail_percentag
serial
strategy
tags
no_log
connection
ḟact_path
port
environment
check_mode
always_run
run_once
有效,但已弃用:
-
sudo
-
sudo_user
-
sudo_pass
-
sudo_exe
-
sudo_flags
-
su
-
su_user
-
su_pass
-
su_exe
-
su_flags
-
user
-没有弃用警告...?!
sudo
sudo_user
sudo_pass
sudo_exe
sudo_flags
su
su_user
su_pass
su_exe
su_flags
user
- no deprecation warning... ?!
似乎不起作用:
-
with_items
,with_dict
,loop_control
-
ǫrder
-尽管在上面的文档中明确列出了 -
when
-
register
-
notify
with_items
,with_dict
,loop_control
ǫrder
- though clearly listed in the documentation abovewhen
register
notify
显然,我没有尝试所有可能性(例如,长度为20),因为这不是解决一般问题的方法:应该将这样的清单放在哪里?有人在那里有此房源吗?!
Apparently I did not try all the possibilities (for a length of 20 for example), because that's not a solution for the general question: where should a listing like this be located? Anyone out there having a listing for this?!
此答案讨论了上述部分内容,尽管(例如,列表中缺少remote_user
)不是可靠的参数恕我直言的列表.
This answer discusses parts of the above, although (as eg. remote_user
is missing from the listing) it is not a reliable listing of parameters IMHO.
推荐答案
指令词汇表似乎列出了我发现正在使用的所有关键字.尽管它仍然列出order
,但它似乎对我不起作用.但是无论如何,它仍然是我想要的清单.
The Directives Glossary seems to list all the keywords I've found to be working. Although it still lists order
which does not seem to work for me. But whatever, it's still a listing I wished for.
这篇关于播放可能的按键的清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!