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
69594a39
Commit
69594a39
authored
2 years ago
by
Zdeněk Vydra
Browse files
Options
Downloads
Patches
Plain Diff
Enable SSH password auth when password is set
parent
25c5ab3f
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
handlers/main.yml
+5
-0
5 additions, 0 deletions
handlers/main.yml
tasks/create_user.yml
+8
-0
8 additions, 0 deletions
tasks/create_user.yml
with
13 additions
and
0 deletions
handlers/main.yml
0 → 100644
+
5
−
0
View file @
69594a39
-
name
:
Reload SSH service
service
:
name
:
sshd
state
:
reloaded
This diff is collapsed.
Click to expand it.
tasks/create_user.yml
+
8
−
0
View file @
69594a39
...
@@ -22,3 +22,11 @@
...
@@ -22,3 +22,11 @@
name
:
'
{{
kypo_user_access_username
}}'
name
:
'
{{
kypo_user_access_username
}}'
password
:
'
{{
kypo_user_access_password
|
password_hash("sha512")
}}'
password
:
'
{{
kypo_user_access_password
|
password_hash("sha512")
}}'
when
:
kypo_user_access_password is defined and kypo_user_access_password
when
:
kypo_user_access_password is defined and kypo_user_access_password
-
name
:
enable SSH password authentication
lineinfile
:
path
:
'
/etc/ssh/sshd_config'
line
:
'
PasswordAuthentication
yes'
regexp
:
'
^#?PasswordAuthentication'
when
:
kypo_user_access_password is defined and kypo_user_access_password
notify
:
Reload SSH service
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