Skip to content
Snippets Groups Projects
Commit ca6753c0 authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

change variable names to uppercase for consistency

parent 1049ecd9
No related branches found
No related tags found
No related merge requests found
...@@ -34,11 +34,10 @@ ...@@ -34,11 +34,10 @@
- /gpfs5 - /gpfs5
#SSH Host Keys #SSH Host Keys
s3_endpoint: "" S3_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: ""
...@@ -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: "{{ s3_endpoint }}" s3_url: "{{ S3_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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment