community.general.ssh_config – Manage SSH config for user¶
Note
This plugin is part of the community.general collection (version 2.5.1).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.ssh_config
.
New in version 2.0.0: of community.general
Parameters¶
Examples¶
- name: Add a host in the configuration
community.general.ssh_config:
user: akasurde
host: "example.com"
hostname: "github.com"
identity_file: "/home/akasurde/.ssh/id_rsa"
port: '2223'
state: present
- name: Delete a host from the configuration
community.general.ssh_config:
ssh_config_file: "{{ ssh_config_test }}"
host: "example.com"
state: absent
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Björn Andersson (@gaqzi)
Abhijeet Kasurde (@Akasurde)