使用`ansible-config list`,意味着yaml是什么?

时间:2018-10-20 09:06:19

标签: ansible

当我启动命令ansible-config list时,某些配置条目具有一个yaml字段,例如:

DEFAULT_VAULT_PASSWORD_FILE:
  default: null
  description: The vault password file to use. Equivalent to --vault-password-file or --vault-id
  env:
  - {name: ANSIBLE_VAULT_PASSWORD_FILE}
  ini:
  - {key: vault_password_file, section: defaults}
  name: Vault password file
  type: path
  yaml: {key: defaults.vault_password_file}

我知道如何使用字段env: {name: ANSIBLE_VAULT_PASSWORD_FILE}和字段ini: {key: vault_password_file, section: defaults}

如何使用yaml: {key: defaults.vault_password_file}

1 个答案:

答案 0 :(得分:1)

显然,它旨在使人们在仔细阅读{% block body %} <div class= "container-fluid"> <h1>Polls</h1> <form method= "post"> <div class="form-group"> <label for="enteringquestion">Please enter a Company and Question: </label> {% csrf_token%} {{ form.as_p}} <fieldset> <label for="enteringchoices">Enter Choices: </label> <br> {{ choice_form.management_form }} {{ choice_form.non_form_errors }} {% for form in choice_form %} {{ form }} {% endfor %} </fieldset> </div> <button type="submit" class="btn btn-primary" >Add your choices</button> </form> {% if error_message %} <h2> {{ error_message }} </h2> {% endif %} <script type="text/javascript"> $( function() { $( "#companiesList" ).autocomplete({ source: "{% url 'polls:company_autocomplete' %}", }); }); </script> </div> {%endblock%} 的输出后提出问题:-D

但是,认真地说,它显然是config/manager.py reads YAML理想世界的一部分,但实际上,它只是一个胖子FIXME

如果不是出于这个问题,没有其他理由,那么理性的人当然可以就是否应该删除这些内容直到它真正生效而有所不同。如果您认为最好将其删除,请随时file an issue

相关问题