Travis | GitHub |
---|---|
Create a user and upload an ssh public key for remote authentification
-
No specific required Ansible.
-
Needs a default ssh public key or a specific key needs to be called out in a variable
Define the user you would to create.
user_name: default
Define the state present or absent
user_state: present
Define the path to ssh public key
ssh_key: ~/.ssh/id_rsa.pub
None
---
- hosts: all
tasks:
- include_role:
name: create_user
vars:
user_name: robert
ssh_key: ./ssh/id_rsa.pub
MIT