Merge "Replace user with openssh_keypair"

This commit is contained in:
Zuul 2021-03-16 14:34:17 +00:00 committed by Gerrit Code Review
commit 0ad1e42658
1 changed files with 3 additions and 5 deletions

View File

@ -44,11 +44,9 @@
mode: "0700" mode: "0700"
- name: Create ssh key pair - name: Create ssh key pair
user: openssh_keypair:
name: "{{ ansible_user }}" path: "{{ ansible_user_dir }}/.ssh/id_rsa"
generate_ssh_key: true size: 2048
ssh_key_bits: 2048
ssh_key_file: "{{ ansible_user_dir }}/.ssh/id_rsa"
- name: Slurp pub key - name: Slurp pub key
slurp: slurp: