From d6bba5daa456f136d0cb6796c1d140e2158fb5ae Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 8 Apr 2020 15:24:56 +0000 Subject: [PATCH] Remove the key display, add ssh config --- roles/fedora-docs/translation/files/ssh_config | 2 ++ roles/fedora-docs/translation/tasks/main.yml | 11 +++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 roles/fedora-docs/translation/files/ssh_config diff --git a/roles/fedora-docs/translation/files/ssh_config b/roles/fedora-docs/translation/files/ssh_config new file mode 100644 index 0000000000..21d4437145 --- /dev/null +++ b/roles/fedora-docs/translation/files/ssh_config @@ -0,0 +1,2 @@ +Host pagure.io + IdentityFile ~/.ssh/id_rsa_docs_trans diff --git a/roles/fedora-docs/translation/tasks/main.yml b/roles/fedora-docs/translation/tasks/main.yml index f731a60143..1546d0d211 100644 --- a/roles/fedora-docs/translation/tasks/main.yml +++ b/roles/fedora-docs/translation/tasks/main.yml @@ -19,12 +19,15 @@ tags: - fedora-docs-translation -# the key is going to be added to pagure for pushing -- name: Display the public key - command: cat ~_update_docs_trans/.ssh/id_rsa_docs_trans.pub +- copy: + src: ssh_config + dest: ~_update_docs_trans/.ssh/config + owner: _update_docs_trans + group: _update_docs_trans + mode: 0644 tags: - fedora-docs-translation - + - copy: src: docs-translation-update dest: /usr/local/bin/docs-translation-update