Ansible-使用剧本输出中的dict变量隐藏

Ansible-使用剧本输出中的dict变量隐藏,ansible,Ansible,我有一个剧本,其中我使用了一个字典变量文件和一个包含任务的剧本。我的问题是playbook在运行时显示变量。我尝试了no_log:True和ignore_errors:True,但没有区别。我使用的是ansible版本2.4.1.0 以下是剧本任务: tasks: - name: "Install License and Remove Default Identifier" include_tasks: includes/junos_license.yml with_dict

我有一个剧本,其中我使用了一个字典变量文件和一个包含任务的剧本。我的问题是playbook在运行时显示变量。我尝试了no_log:True和ignore_errors:True,但没有区别。我使用的是ansible版本2.4.1.0

以下是剧本任务:

tasks:
  - name: "Install License and Remove Default Identifier"
    include_tasks: includes/junos_license.yml
    with_dict: "{{ vsrx  }}"
TASK [Install License and Remove Default Identifier] 

***************************************************************************
msg: All items completed

results: [
  {
    "item": {
      "key": "vsrx-02", 
      "value": {
        "Hostname": "vsrx-02", 
        "IP_Address": "192.168.1.211"
      }
    }, 
    "_ansible_item_result": true, 
    "include": "includes/junos_license.yml", 
    "include_variables": {}
  }, 
  {
    "item": {
      "key": "vsrx-01", 
      "value": {
        "Hostname": "vsrx-01", 
        "IP_Address": "192.168.1.209"
      }
    }, 
    "_ansible_item_result": true, 
    "include": "includes/junos_license.yml", 
    "include_variables": {}
  }
] 
included: /home/ansible/junos_base_config/includes/junos_license.yml for 
localhost
included: /home/ansible/junos_base_config/includes/junos_license.yml for 
localhost
以下是运行剧本的输出:

tasks:
  - name: "Install License and Remove Default Identifier"
    include_tasks: includes/junos_license.yml
    with_dict: "{{ vsrx  }}"
TASK [Install License and Remove Default Identifier] 

***************************************************************************
msg: All items completed

results: [
  {
    "item": {
      "key": "vsrx-02", 
      "value": {
        "Hostname": "vsrx-02", 
        "IP_Address": "192.168.1.211"
      }
    }, 
    "_ansible_item_result": true, 
    "include": "includes/junos_license.yml", 
    "include_variables": {}
  }, 
  {
    "item": {
      "key": "vsrx-01", 
      "value": {
        "Hostname": "vsrx-01", 
        "IP_Address": "192.168.1.209"
      }
    }, 
    "_ansible_item_result": true, 
    "include": "includes/junos_license.yml", 
    "include_variables": {}
  }
] 
included: /home/ansible/junos_base_config/includes/junos_license.yml for 
localhost
included: /home/ansible/junos_base_config/includes/junos_license.yml for 
localhost
使用:

使用:


不幸的是,它没有起作用。可能是因为我在循环中使用了include任务。不幸的是,它不起作用。可能是因为我在循环中使用了include任务。