kumulustech.create_user

create_user

This script adds a new user and uploads an SSH public key for remote access.

Requirements

  • No specific version of Ansible is needed.
  • You must have a default SSH public key, or specify a different key in a variable.

Role Variables

  • user_name: The name of the user to create (default is "default").
  • user_state: The status of the user (either "present" to create or "absent" to delete).
  • ssh_key: The path to the SSH public key (default is ~/.ssh/id_rsa.pub).

Dependencies

  • None

Example Playbook

---
- hosts: all
  tasks:
     - include_role:
         name: create_user
       vars:
         user_name: robert
         ssh_key: ~/.ssh/cloud_key.pub

License

MIT

Author Information

info@kumul.us

Informazioni sul progetto

Create user with ssh authentication

Installa
ansible-galaxy install kumulustech.create_user
Licenza
Unknown
Download
202
Proprietario
Cloud Services, Integration and Support