Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpc-factory
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Bo-Chun Chen
hpc-factory
Commits
ca6753c0
Commit
ca6753c0
authored
6 months ago
by
Krish Moodbidri
Browse files
Options
Downloads
Patches
Plain Diff
change variable names to uppercase for consistency
parent
1049ecd9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/group_vars/all
+5
-6
5 additions, 6 deletions
ansible/group_vars/all
ansible/roles/ssh_host_keys/tasks/main.yml
+8
-8
8 additions, 8 deletions
ansible/roles/ssh_host_keys/tasks/main.yml
with
13 additions
and
14 deletions
ansible/group_vars/all
+
5
−
6
View file @
ca6753c0
...
@@ -34,11 +34,10 @@
...
@@ -34,11 +34,10 @@
- /gpfs5
- /gpfs5
#SSH Host Keys
#SSH Host Keys
s
3_
endpoint
: ""
S
3_
ENDPOINT
: ""
ssh_host_keys_s3_bucket
: ""
SSH_HOST_KEYS_S3_BUCKET
: ""
ssh_host_keys_s3_object
: ""
SSH_HOST_KEYS_S3_OBJECT
: ""
# AWS credentials
# AWS credentials
lts_access_key: ""
LTS_ACCESS_KEY: ""
lts_secret_key: ""
LTS_SECRET_KEY: ""
This diff is collapsed.
Click to expand it.
ansible/roles/ssh_host_keys/tasks/main.yml
+
8
−
8
View file @
ca6753c0
...
@@ -10,18 +10,18 @@
...
@@ -10,18 +10,18 @@
-
name
:
Download SSH host keys tar.gz from S3
-
name
:
Download SSH host keys tar.gz from S3
aws_s3
:
aws_s3
:
mode
:
get
mode
:
get
s3_url
:
"
{{
s
3_
endpoint
}}"
s3_url
:
"
{{
S
3_
ENDPOINT
}}"
bucket
:
"
{{
ssh_host_keys_s3_bucket
}}"
bucket
:
"
{{
SSH_HOST_KEYS_S3_BUCKET
}}"
object
:
"
{{
ssh_host_keys_s3_object
}}"
object
:
"
{{
SSH_HOST_KEYS_S3_OBJECT
}}"
dest
:
"
/tmp/ssh_keys/{{
ssh_host_keys_s3_object
}}"
dest
:
"
/tmp/ssh_keys/{{
SSH_HOST_KEYS_S3_OBJECT
}}"
aws_access_key
:
"
{{
lts_access_key
}}"
aws_access_key
:
"
{{
LTS_ACCESS_KEY
}}"
aws_secret_key
:
"
{{
lts_secret_key
}}"
aws_secret_key
:
"
{{
LTS_SECRET_KEY
}}"
vars
:
vars
:
ansible_python_interpreter
:
/usr/bin/python3
ansible_python_interpreter
:
/usr/bin/python3
-
name
:
Unpack SSH host keys to /etc/ssh
-
name
:
Unpack SSH host keys to /etc/ssh
unarchive
:
unarchive
:
src
:
"
/tmp/ssh_keys/{{
ssh_host_keys_s3_object
}}"
src
:
"
/tmp/ssh_keys/{{
SSH_HOST_KEYS_S3_OBJECT
}}"
dest
:
"
/etc/ssh"
dest
:
"
/etc/ssh"
remote_src
:
yes
remote_src
:
yes
become
:
true
become
:
true
...
@@ -30,4 +30,4 @@
...
@@ -30,4 +30,4 @@
ansible.builtin.service
:
ansible.builtin.service
:
name
:
sshd
name
:
sshd
state
:
restarted
state
:
restarted
become
:
true
become
:
true
\ No newline at end of file
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