Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Base
Manage
Activity
Members
Labels
Plan
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
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
KSZK
Ansible
Roles
Base
Commits
2cd49148
Commit
2cd49148
authored
3 years ago
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
Update ssh key variable
parent
7954c9f5
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
defaults/main.yml
+1
-1
1 addition, 1 deletion
defaults/main.yml
tasks/setup_user.yml
+2
-2
2 additions, 2 deletions
tasks/setup_user.yml
with
3 additions
and
3 deletions
defaults/main.yml
+
1
−
1
View file @
2cd49148
...
...
@@ -23,7 +23,7 @@ hostname: "{{ inventory_hostname }}"
# sudo: yes
# passwordless_sudo: yes
# # https://docs.ansible.com/ansible/latest/collections/ansible/posix/authorized_key_module.html#examples
#
keys_url
: https://git.sch.bme.hu/xy.keys
#
ssh_key
: https://git.sch.bme.hu/xy.keys
# netplan:
# network:
...
...
This diff is collapsed.
Click to expand it.
tasks/setup_user.yml
+
2
−
2
View file @
2cd49148
...
...
@@ -38,7 +38,7 @@
ansible.posix.authorized_key
:
user
:
"
{{
user.name
}}"
state
:
present
key
:
"
{{
user.
keys_url
}}"
key
:
"
{{
user.
ssh_key
}}"
manage_dir
:
yes
exclusive
:
yes
when
:
user.
keys_url
is defined
when
:
user.
ssh_key
is defined
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