Add a ssh_key_file optional argument (#21)

I already had an existing SSH key, with a different name. I wanted to be
able to use this one instead of creating another key, potentially used
for another server.
This commit is contained in:
Marien Fressinaud 2020-01-29 08:29:33 +01:00 committed by GitHub
parent fddfbbdc0b
commit 85211377b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,7 @@ An Ansible Role that sets up automated remote backups on the target machine. Use
- `borg_remote_path`: Path to the borg executable on the remote. It will default to `borg`.
- `borg_encryption_passcommand`: The standard output of this command is used to unlock the encryption key.
- `borg_retention_policy`: Retention policy for how many backups to keep in each category (daily, weekly, monthly, etc).
- `ssh_key_file`: Path to a private ssh key file (default is `.ssh/id_ed25519`). It generates a ed25519 key if the file doesn't exist yet.
### Optional Arguments for [BorgBase.com](https://www.borgbase.com) repository auto creation
- `create_repo`: Whether to let the role create the repository for the server. Default: False

View File

@ -17,6 +17,7 @@ borg_retention_policy:
keep_weekly: 4
keep_monthly: 6
create_repo: False
ssh_key_file: .ssh/id_ed25519
bb_new_sshkey: True
bb_append: True
bb_quota: False

View File

@ -24,7 +24,7 @@
user:
name: "root"
generate_ssh_key: yes
ssh_key_file: .ssh/id_ed25519
ssh_key_file: "{{ ssh_key_file }}"
ssh_key_type: ed25519
register: root_user