Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
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
mediaserver
envsetup
Commits
aa94f9a9
Commit
aa94f9a9
authored
4 years ago
by
Emmanuel Cohen
Browse files
Options
Downloads
Patches
Plain Diff
Copy ssh key between all mediaservers
parent
490d2385
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/mediaserver/tasks/main.yml
+16
-0
16 additions, 0 deletions
roles/mediaserver/tasks/main.yml
with
16 additions
and
0 deletions
roles/mediaserver/tasks/main.yml
+
16
−
0
View file @
aa94f9a9
...
@@ -6,6 +6,21 @@
...
@@ -6,6 +6,21 @@
install_recommends
:
false
install_recommends
:
false
name
:
"
{{
server_packages
}}"
name
:
"
{{
server_packages
}}"
-
name
:
fetch postgres ssh public key
register
:
root_ssh_pubkey
slurp
:
path
:
/root/.ssh/id_ed25519.pub
-
name
:
register postgres ssh public key as an ansible fact
set_fact
:
pubkey
:
"
{{
root_ssh_pubkey['content']
|
b64decode
}}"
-
name
:
share postgres ssh public key between cluster members
loop
:
"
{{
groups['mediaserver']
}}"
authorized_key
:
user
:
root
key
:
"
{{
hostvars[item]['pubkey']
}}"
-
name
:
resolve domain name to localhost
-
name
:
resolve domain name to localhost
when
:
not in_docker
when
:
not in_docker
notify
:
restart nginx
notify
:
restart nginx
...
@@ -26,6 +41,7 @@
...
@@ -26,6 +41,7 @@
dest
:
"
{{
item
}}"
dest
:
"
{{
item
}}"
mode
:
push
mode
:
push
copy_links
:
yes
copy_links
:
yes
set_remote_user
:
no
delegate_to
:
"
{{
groups['mediaserver'][0]
}}"
delegate_to
:
"
{{
groups['mediaserver'][0]
}}"
-
name
:
create instances
-
name
:
create instances
...
...
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