Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kypo-ansible-stage-one
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-ansible-stage-one
Commits
801d3380
Commit
801d3380
authored
6 years ago
by
Kamil Andoniadis
Browse files
Options
Downloads
Patches
Plain Diff
use SSH key generated by django-openstack
parent
3c51107d
Branches
Branches containing commit
Tags
v2.2.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
playbook.yml
+5
-11
5 additions, 11 deletions
playbook.yml
with
5 additions
and
11 deletions
playbook.yml
+
5
−
11
View file @
801d3380
...
@@ -28,26 +28,20 @@
...
@@ -28,26 +28,20 @@
table
:
nat
table
:
nat
jump
:
MASQUERADE
jump
:
MASQUERADE
-
include_vars
:
user-access.yml
-
name
:
create SSH proxy user
user
:
name
:
'
{{
user_name
}}'
generate_ssh_key
:
yes
-
hosts
:
-
hosts
:
-
smn
-
smn
-
uan
-
uan
gather_facts
:
no
gather_facts
:
no
become
:
yes
become
:
yes
become_user
:
root
become_user
:
root
vars
:
user_name
:
user-access
tasks
:
tasks
:
-
include_vars
:
user-access.yml
-
name
:
create SSH proxy user
-
name
:
create SSH proxy user
user
:
user
:
name
:
'
{{
user_name
}}'
name
:
'
{{
user_name
}}'
shell
:
/bin/bash
-
name
:
ensure existence of SSH directory
-
name
:
ensure existence of SSH directory
file
:
file
:
...
@@ -60,11 +54,11 @@
...
@@ -60,11 +54,11 @@
-
name
:
add public key to authorized keys
-
name
:
add public key to authorized keys
authorized_key
:
authorized_key
:
user
:
'
{{
user_name
}}'
user
:
'
{{
user_name
}}'
key
:
'
{{
public_key_
content
}}'
key
:
'
{{
lookup("file",
user_
public_key_
path)
}}'
-
name
:
copy private key of SSH proxy user
-
name
:
copy private key of SSH proxy user
copy
:
copy
:
src
:
'
{{
private_key
}}'
src
:
'
{{
user_
private_key
_path
}}'
dest
:
/home/{{ user_name }}/.ssh
dest
:
/home/{{ user_name }}/.ssh
owner
:
'
{{
user_name
}}'
owner
:
'
{{
user_name
}}'
group
:
'
{{
user_name
}}'
group
:
'
{{
user_name
}}'
...
...
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