diff --git a/slococo/playground/playbooks/main.yml b/slococo/playground/playbooks/main.yml index efa47aa..c79f118 100644 --- a/slococo/playground/playbooks/main.yml +++ b/slococo/playground/playbooks/main.yml @@ -16,4 +16,4 @@ userid: 38000088 expiry_date: '2024-12-31' passwordless: true - private_key_path: /Users/slococo/keys/ + local_accounts_pk_path: /Users/slococo/keys/ diff --git a/slococo/playground/roles/local_accounts/meta/argument_specs.yml b/slococo/playground/roles/local_accounts/meta/argument_specs.yml index 0d7c497..9191b64 100644 --- a/slococo/playground/roles/local_accounts/meta/argument_specs.yml +++ b/slococo/playground/roles/local_accounts/meta/argument_specs.yml @@ -40,7 +40,7 @@ argument_specs: required: false default: false description: Boolean value indicating whether SSH key pairs should be generated for passwordless authentication. - private_key_path: + local_accounts_pk_path: type: str required: false default: /tmp diff --git a/slococo/playground/roles/local_accounts/tasks/main.yml b/slococo/playground/roles/local_accounts/tasks/main.yml index 3e7938a..182c6d1 100644 --- a/slococo/playground/roles/local_accounts/tasks/main.yml +++ b/slococo/playground/roles/local_accounts/tasks/main.yml @@ -16,7 +16,7 @@ - name: Determine key path ansible.builtin.set_fact: - key_path: "{{ (private_key_path | default('/tmp')) | regex_replace('/$', '') }}/id_rsa" + key_path: "{{ (local_accounts_pk_path | default('/tmp')) | regex_replace('/$', '') }}/id_rsa" - name: Generate SSH key pairs for local users community.crypto.openssh_keypair: