mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
ssh_config: Add add_keys_to_agent option (#7703)
* Add ssh_config module option for add_keys_to_agent * Add changelog fragment for 7703 --------- Co-authored-by: Michael Finney <michael.finney@tpwd.texas.gov>
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
host: "options.example.com"
|
||||
proxycommand: "ssh jumphost.example.com -W %h:%p"
|
||||
forward_agent: true
|
||||
add_keys_to_agent: true
|
||||
host_key_algorithms: "+ssh-rsa"
|
||||
controlmaster: "auto"
|
||||
controlpath: "~/.ssh/sockets/%r@%h-%p"
|
||||
@@ -47,6 +48,7 @@
|
||||
host: "options.example.com"
|
||||
proxycommand: "ssh jumphost.example.com -W %h:%p"
|
||||
forward_agent: true
|
||||
add_keys_to_agent: true
|
||||
host_key_algorithms: "+ssh-rsa"
|
||||
controlmaster: "auto"
|
||||
controlpath: "~/.ssh/sockets/%r@%h-%p"
|
||||
@@ -68,6 +70,7 @@
|
||||
host: "options.example.com"
|
||||
proxycommand: "ssh jumphost.example.com -W %h:%p"
|
||||
forward_agent: true
|
||||
add_keys_to_agent: true
|
||||
host_key_algorithms: "+ssh-rsa"
|
||||
controlmaster: "auto"
|
||||
controlpath: "~/.ssh/sockets/%r@%h-%p"
|
||||
@@ -93,6 +96,7 @@
|
||||
that:
|
||||
- "'proxycommand ssh jumphost.example.com -W %h:%p' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'forwardagent yes' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'addkeystoagent yes' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'hostkeyalgorithms +ssh-rsa' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'controlmaster auto' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'controlpath ~/.ssh/sockets/%r@%h-%p' in slurp_ssh_config['content'] | b64decode"
|
||||
@@ -104,6 +108,7 @@
|
||||
host: "options.example.com"
|
||||
proxycommand: "ssh new-jumphost.example.com -W %h:%p"
|
||||
forward_agent: false
|
||||
add_keys_to_agent: false
|
||||
host_key_algorithms: "+ssh-ed25519"
|
||||
controlmaster: no
|
||||
controlpath: "~/.ssh/new-sockets/%r@%h-%p"
|
||||
@@ -127,6 +132,7 @@
|
||||
host: "options.example.com"
|
||||
proxycommand: "ssh new-jumphost.example.com -W %h:%p"
|
||||
forward_agent: false
|
||||
add_keys_to_agent: false
|
||||
host_key_algorithms: "+ssh-ed25519"
|
||||
controlmaster: no
|
||||
controlpath: "~/.ssh/new-sockets/%r@%h-%p"
|
||||
@@ -153,6 +159,7 @@
|
||||
that:
|
||||
- "'proxycommand ssh new-jumphost.example.com -W %h:%p' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'forwardagent no' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'addkeystoagent no' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'hostkeyalgorithms +ssh-ed25519' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'controlmaster no' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'controlpath ~/.ssh/new-sockets/%r@%h-%p' in slurp_ssh_config['content'] | b64decode"
|
||||
@@ -184,6 +191,7 @@
|
||||
that:
|
||||
- "'proxycommand ssh new-jumphost.example.com -W %h:%p' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'forwardagent no' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'addkeystoagent no' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'hostkeyalgorithms +ssh-ed25519' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'controlmaster no' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'controlpath ~/.ssh/new-sockets/%r@%h-%p' in slurp_ssh_config['content'] | b64decode"
|
||||
@@ -233,6 +241,7 @@
|
||||
that:
|
||||
- "'proxycommand ssh new-jumphost.example.com -W %h:%p' not in slurp_ssh_config['content'] | b64decode"
|
||||
- "'forwardagent no' not in slurp_ssh_config['content'] | b64decode"
|
||||
- "'addkeystoagent no' not in slurp_ssh_config['content'] | b64decode"
|
||||
- "'hostkeyalgorithms +ssh-ed25519' not in slurp_ssh_config['content'] | b64decode"
|
||||
- "'controlmaster auto' not in slurp_ssh_config['content'] | b64decode"
|
||||
- "'controlpath ~/.ssh/sockets/%r@%h-%p' not in slurp_ssh_config['content'] | b64decode"
|
||||
@@ -252,6 +261,7 @@
|
||||
host: "options.example.com"
|
||||
proxyjump: "jumphost.example.com"
|
||||
forward_agent: true
|
||||
add_keys_to_agent: true
|
||||
host_key_algorithms: "+ssh-rsa"
|
||||
controlmaster: "auto"
|
||||
controlpath: "~/.ssh/sockets/%r@%h-%p"
|
||||
@@ -284,6 +294,7 @@
|
||||
host: "options.example.com"
|
||||
proxyjump: "jumphost.example.com"
|
||||
forward_agent: true
|
||||
add_keys_to_agent: true
|
||||
host_key_algorithms: "+ssh-rsa"
|
||||
controlmaster: "auto"
|
||||
controlpath: "~/.ssh/sockets/%r@%h-%p"
|
||||
@@ -305,6 +316,7 @@
|
||||
host: "options.example.com"
|
||||
proxyjump: "jumphost.example.com"
|
||||
forward_agent: true
|
||||
add_keys_to_agent: true
|
||||
host_key_algorithms: "+ssh-rsa"
|
||||
controlmaster: "auto"
|
||||
controlpath: "~/.ssh/sockets/%r@%h-%p"
|
||||
@@ -330,6 +342,7 @@
|
||||
that:
|
||||
- "'proxyjump jumphost.example.com' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'forwardagent yes' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'addkeystoagent yes' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'hostkeyalgorithms +ssh-rsa' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'controlmaster auto' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'controlpath ~/.ssh/sockets/%r@%h-%p' in slurp_ssh_config['content'] | b64decode"
|
||||
@@ -341,6 +354,7 @@
|
||||
host: "options.example.com"
|
||||
proxyjump: "new-jumphost.example.com"
|
||||
forward_agent: false
|
||||
add_keys_to_agent: false
|
||||
host_key_algorithms: "+ssh-ed25519"
|
||||
controlmaster: no
|
||||
controlpath: "~/.ssh/new-sockets/%r@%h-%p"
|
||||
@@ -364,6 +378,7 @@
|
||||
host: "options.example.com"
|
||||
proxyjump: "new-jumphost.example.com"
|
||||
forward_agent: false
|
||||
add_keys_to_agent: false
|
||||
host_key_algorithms: "+ssh-ed25519"
|
||||
controlmaster: no
|
||||
controlpath: "~/.ssh/new-sockets/%r@%h-%p"
|
||||
@@ -390,6 +405,7 @@
|
||||
that:
|
||||
- "'proxyjump new-jumphost.example.com' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'forwardagent no' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'addkeystoagent no' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'hostkeyalgorithms +ssh-ed25519' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'controlmaster no' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'controlpath ~/.ssh/new-sockets/%r@%h-%p' in slurp_ssh_config['content'] | b64decode"
|
||||
@@ -421,6 +437,7 @@
|
||||
that:
|
||||
- "'proxyjump new-jumphost.example.com' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'forwardagent no' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'addkeystoagent no' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'hostkeyalgorithms +ssh-ed25519' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'controlmaster no' in slurp_ssh_config['content'] | b64decode"
|
||||
- "'controlpath ~/.ssh/new-sockets/%r@%h-%p' in slurp_ssh_config['content'] | b64decode"
|
||||
@@ -470,6 +487,7 @@
|
||||
that:
|
||||
- "'proxyjump new-jumphost.example.com' not in slurp_ssh_config['content'] | b64decode"
|
||||
- "'forwardagent no' not in slurp_ssh_config['content'] | b64decode"
|
||||
- "'addkeystoagent no' not in slurp_ssh_config['content'] | b64decode"
|
||||
- "'hostkeyalgorithms +ssh-ed25519' not in slurp_ssh_config['content'] | b64decode"
|
||||
- "'controlmaster auto' not in slurp_ssh_config['content'] | b64decode"
|
||||
- "'controlpath ~/.ssh/sockets/%r@%h-%p' not in slurp_ssh_config['content'] | b64decode"
|
||||
|
||||
Reference in New Issue
Block a user