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