mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-10-23 04:24:09 -07:00
added scp_if_ssh
This commit is contained in:
parent
b1dce47b98
commit
b82249167c
1 changed files with 15 additions and 1 deletions
|
@ -14,6 +14,7 @@ from __future__ import annotations
|
||||||
# 1. Changed default private_key_file default to ~/.ssh/google_compute_engine
|
# 1. Changed default private_key_file default to ~/.ssh/google_compute_engine
|
||||||
# 2. Make host_key_checking default to False
|
# 2. Make host_key_checking default to False
|
||||||
# 3. Added known_hosts_file option pointing to ~/.ssh/google_compute_known_hosts
|
# 3. Added known_hosts_file option pointing to ~/.ssh/google_compute_known_hosts
|
||||||
|
# 4. Added missing scp_if_ssh option to fix compatibility issues
|
||||||
DOCUMENTATION = """
|
DOCUMENTATION = """
|
||||||
name: iap
|
name: iap
|
||||||
short_description: connect via SSH through Google Cloud's Identity Aware Proxy (IAP)
|
short_description: connect via SSH through Google Cloud's Identity Aware Proxy (IAP)
|
||||||
|
@ -257,6 +258,19 @@ DOCUMENTATION = """
|
||||||
- name: ansible_scp_extra_args
|
- name: ansible_scp_extra_args
|
||||||
cli:
|
cli:
|
||||||
- name: scp_extra_args
|
- name: scp_extra_args
|
||||||
|
scp_if_ssh:
|
||||||
|
description:
|
||||||
|
- Fallback to SCP (Secure Copy Protocol) when SFTP is not available.
|
||||||
|
- When enabled and SFTP fails, Ansible will try to use SCP for file transfers.
|
||||||
|
type: bool
|
||||||
|
default: smart
|
||||||
|
ini:
|
||||||
|
- section: ssh_connection
|
||||||
|
key: scp_if_ssh
|
||||||
|
env:
|
||||||
|
- name: ANSIBLE_SCP_IF_SSH
|
||||||
|
vars:
|
||||||
|
- name: ansible_scp_if_ssh
|
||||||
sftp_extra_args:
|
sftp_extra_args:
|
||||||
description: Extra exclusive to the C(sftp) CLI
|
description: Extra exclusive to the C(sftp) CLI
|
||||||
type: string
|
type: string
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue