Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kypo-user-access
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MUNI-KYPO-CRP
backend-python
ansible-networking-stage
kypo-user-access
Commits
cdf0b451
Commit
cdf0b451
authored
5 years ago
by
Kamil Andoniadis
Browse files
Options
Downloads
Patches
Plain Diff
rename variables
parent
ad670d1c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
defaults/main.yml
+2
-2
2 additions, 2 deletions
defaults/main.yml
tasks/main.yml
+6
-6
6 additions, 6 deletions
tasks/main.yml
with
8 additions
and
8 deletions
defaults/main.yml
+
2
−
2
View file @
cdf0b451
user_access_username
:
user_access_ssh_public_key
:
'
{{
hostvars["man"]["user_public_key_path"]
}}'
kypo_
user_access_username
:
kypo_
user_access_ssh_public_key
:
'
{{
hostvars["man"]["user_public_key_path"]
}}'
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
6
−
6
View file @
cdf0b451
-
name
:
ensure existence of user
user
:
name
:
'
{{
user_access_username
}}'
name
:
'
{{
kypo_
user_access_username
}}'
-
name
:
ensure existence of SSH directory
file
:
path
:
/home/{{ user_access_username }}/.ssh
path
:
/home/{{
kypo_
user_access_username }}/.ssh
state
:
directory
owner
:
'
{{
user_access_username
}}'
group
:
'
{{
user_access_username
}}'
owner
:
'
{{
kypo_
user_access_username
}}'
group
:
'
{{
kypo_
user_access_username
}}'
mode
:
0700
-
name
:
add public key to authorized keys
authorized_key
:
user
:
'
{{
user_access_username
}}'
key
:
'
{{
lookup("file",
user_access_ssh_public_key)
}}'
user
:
'
{{
kypo_
user_access_username
}}'
key
:
'
{{
lookup("file",
kypo_
user_access_ssh_public_key)
}}'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment