Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to create multiple users with this playbook? #1

Closed
aoyawale opened this issue Jun 27, 2016 · 4 comments
Closed

how to create multiple users with this playbook? #1

aoyawale opened this issue Jun 27, 2016 · 4 comments

Comments

@aoyawale
Copy link

Trying to figure out how to use this playbook to create all the users I need and adding their keys.

@abaez
Copy link
Owner

abaez commented Jun 27, 2016

Hey @chagara,

I should've written more on this, but you can change the users by changing the variables listed in the map below:

users:
  main:
    name
    home
  super:
    name
    home

users.super would be for root all privilege user, whose only access is through rsa key.
users.main would be for normal users, whose access is limited by the template/main.j2.

lastly, you can add your key inside the files directory to be added to the users.

@abaez
Copy link
Owner

abaez commented Jun 27, 2016

Actually, after further inspection, I noticed that the key was hardwritten to be only serve.pub for access to the user. Changing this now in the coming up changesets.

@aoyawale
Copy link
Author

thank you :) Just started learning ansible and this is one of the first tasked I need to complete.

@abaez
Copy link
Owner

abaez commented Jun 27, 2016

I believe the readme is more approachable. That and the fix to use of any pubkey should make this role manageable to your initial issue. Closing this stub.

Lastly, welcome to the ansible love! Nothing like the ease of this tool to make life less straining.

@abaez abaez closed this as completed Jun 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants