Remove redundant SSH client configuration.
This commit is contained in:
parent
118dcf0f78
commit
816846c761
@ -12,20 +12,9 @@
|
|||||||
url: "https://{{ CLOUD_SERVER }}/s/{{ lookup('env','KEY') }}/download?path=%2F&files=secrets.tar.gz.enc"
|
url: "https://{{ CLOUD_SERVER }}/s/{{ lookup('env','KEY') }}/download?path=%2F&files=secrets.tar.gz.enc"
|
||||||
dest: "{{ WORKDIR }}/secrets.tar.gz.enc"
|
dest: "{{ WORKDIR }}/secrets.tar.gz.enc"
|
||||||
|
|
||||||
- name: Create /root/.ssh directory
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: /root/.ssh
|
|
||||||
state: directory
|
|
||||||
mode: '0700'
|
|
||||||
|
|
||||||
- name: Extract from secrets.tar.gz.enc
|
- name: Extract from secrets.tar.gz.enc
|
||||||
shell: "openssl enc -aes-256-cbc -md md5 -pass env:SECRETS_ARCHIVE_PASSPHRASE -d -in {{ WORKDIR }}/secrets.tar.gz.enc | tar -zxv -C {{ WORKDIR }}"
|
shell: "openssl enc -aes-256-cbc -md md5 -pass env:SECRETS_ARCHIVE_PASSPHRASE -d -in {{ WORKDIR }}/secrets.tar.gz.enc | tar -zxv -C {{ WORKDIR }}"
|
||||||
|
|
||||||
- name: Change SSH private key permissions
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: /root/.ssh/id_rsa
|
|
||||||
mode: '0400'
|
|
||||||
|
|
||||||
- name: Retrieve documentation
|
- name: Retrieve documentation
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "https://{{ CLOUD_SERVER }}/s/{{ lookup('env','DOC_KEY') }}/download"
|
url: "https://{{ CLOUD_SERVER }}/s/{{ lookup('env','DOC_KEY') }}/download"
|
||||||
|
Loading…
Reference in New Issue
Block a user