一个剧本的可能键的 Ansible 列表 [英] Ansible list of possible keys for a play

查看:20
本文介绍了一个剧本的可能键的 Ansible 列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每个模块都有一个关于可能使用的键的相当描述性的文档.

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.

我检查了什么:

我已经用过的键(所以它们肯定能用)

Keys I have used already (so they definitely work)

  • name - 虽然没有在上面列出的文档中列出
  • 主机
  • remote_user
  • 任务
  • pre_tasks, post_tasks - 在注释中提到
  • 角色
  • becomebecome_methodbecome_userbecome_flags
  • handlers, force_handlers
  • ignore_errors - 在任何列表中都没有找到,但有效
  • varsvars_promptvars_files
  • gather_factsgather_subsetgather_timeout
  • any_errors_fatal - 未列出
  • 加速accelerate_ipv6accelerate_port
  • vault_password
  • max_fail_percentag
  • 串行
  • 策略
  • 标签
  • no_log
  • 连接
  • ḟact_path
  • 端口
  • 环境
  • check_mode
  • always_run
  • run_once
  • name - though not listed in documentation listed above
  • hosts
  • remote_user
  • tasks
  • pre_tasks, post_tasks - mentioned in a note
  • roles
  • become, become_method, become_user, become_flags
  • handlers, force_handlers
  • ignore_errors - did not find in any listing, but works
  • vars, vars_prompt, vars_files
  • gather_facts, gather_subset, gather_timeout
  • any_errors_fatal - not listed
  • 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

有效但已弃用:

  • 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_itemswith_dictloop_control
  • ǫrder - 虽然在上面的文档中明确列出
  • 什么时候
  • 注册
  • 通知
  • with_items, with_dict, loop_control
  • ǫrder - though clearly listed in the documentation above
  • when
  • 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.

这篇关于一个剧本的可能键的 Ansible 列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆