---
- name: Set the gather facts policy
  action: configfile path={{ ansible_cfg_file }} key=gathering value='{{ ansible_gathering }}'
  tags:
    - ansible
    - ansible_cfg

- name: Warn if some shell commands can be avoided using modules
  action: configfile path={{ ansible_cfg_file }} key=command_warning value='{{ ansible_command_warnings }}'
  tags:
    - ansible
    - ansible_cfg

- name: Shorten the ansible control path
  action: configfile path={{ ansible_cfg_file }} key=control_path value='{{ ansible_control_path }}'
  tags:
    - ansible
    - ansible_cfg

- name: Be fast, use pipelining when possible
  action: configfile path={{ ansible_cfg_file }} key=pipelining value='{{ ansible_pipelining }}'
  tags:
    - ansible
    - ansible_cfg

- name: Use scp instead of sftp to transfer files
  action: configfile path={{ ansible_cfg_file }} key=scp_if_ssh value='{{ ansible_scp_if_ssh }}'
  tags:
    - ansible
    - ansible_cfg