From 816846c761d1a33ecc818d6e1f029da6d15bca76 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sun, 22 Oct 2023 16:19:57 +0200 Subject: [PATCH] Remove redundant SSH client configuration. --- tasks/bootstrap.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tasks/bootstrap.yml b/tasks/bootstrap.yml index 1a5398f..278f93a 100755 --- a/tasks/bootstrap.yml +++ b/tasks/bootstrap.yml @@ -12,20 +12,9 @@ url: "https://{{ CLOUD_SERVER }}/s/{{ lookup('env','KEY') }}/download?path=%2F&files=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 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 ansible.builtin.get_url: url: "https://{{ CLOUD_SERVER }}/s/{{ lookup('env','DOC_KEY') }}/download"