Skip to content
Snippets Groups Projects
Name Last commit Last update
defaults
meta
tasks
README.md

Ansible role - kypo-user-access

This role was specially designed for KYPO sandbox. It sets user-access public SSH key as authorized key and optionally sets password to a user.

Requirements

  • This role requires root access, so you either need to specify become directive as a global or while invoking the role.

    become: yes

Role parameters

Optional parameters.

  • kypo_user_access_username - The name of the user to give SSH access to (default: user-access).
  • kypo_user_access_password - The password of user kypo_user_access_password (omitted by default).
  • kypo_user_access_ssh_public_key - The path on Ansible controller to SSH public key that will be set as authorized_key (default: kypo_global_ssh_public_user_key).
  • kypo_user_access_ssh_public_key_options - The authorized_keys options. For more information see authorized_keys(5) (default: "").

Example

The simplest example.

roles:
    - role: kypo-user-access