Synchronize: Document the private_key option (#32754)

`synchronize` has supported the `private_key` option for a long time,
apparently. But for some reason it was never documented.

Today I managed to workaround the synchronize quoting bug by just using

```
private_key: /path/to/id_rsa
```

instead of

```
rsync_opts:
  - "--rsh 'ssh -i /path/to/id_rsa'"
```

So, I'll just go ahead and document this useful option ...
pull/32758/head
Tobias Wolf 7 years ago committed by Sam Doran
parent a1ea29f249
commit bed78872f9

@ -146,6 +146,10 @@ options:
type: bool type: bool
default: 'no' default: 'no'
version_added: "2.0" version_added: "2.0"
private_key:
description:
- Specify the private key to use for SSH-based rsync connections (e.g. C(~/.ssh/id_rsa))
version_added: "1.6"
notes: notes:
- rsync must be installed on both the local and remote host. - rsync must be installed on both the local and remote host.
- For the C(synchronize) module, the "local host" is the host `the synchronize task originates on`, and the "destination host" is the host - For the C(synchronize) module, the "local host" is the host `the synchronize task originates on`, and the "destination host" is the host

Loading…
Cancel
Save