This commit is contained in:
@@ -13,14 +13,9 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Decode SSH key
|
- name: Copy base64 encoded SSH key to file
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.ANSIBLE_KEY_BASE64 }}" | base64 -d > ~/.ssh/id_rsa
|
echo "${{ secrets.ANSIBLE_SSH_KEY }}" | base64 --decode > ansible_key
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ansible_key
|
||||||
- name: echo base64 key
|
- name: cat ansible_key
|
||||||
run: |
|
run: cat ansible_key
|
||||||
echo "${{ secrets.ANSIBLE2 }}"
|
|
||||||
- name: echo SSH key
|
|
||||||
run: |
|
|
||||||
ls -la ~/.ssh
|
|
||||||
cat ~/.ssh/id_rsa
|
|
||||||
Reference in New Issue
Block a user