Skip to content

Commit

Permalink
Check if we need ssh key
Browse files Browse the repository at this point in the history
  • Loading branch information
wawrzek committed Aug 1, 2024
1 parent db4dfb3 commit 98fd084
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ jobs:
role-session-name: deploy-role-session
aws-region: us-east-2

- name: Prepare ssh key
shell: bash
env:
SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
mkdir ~/.ssh
chmod 700 ~/.ssh
echo $SSH_KEY > ~/.ssh/glove.prv
chmod 600 ~/.ssh/glove.prv
# - name: Prepare ssh key
# shell: bash
# env:
# SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
# run: |
# mkdir ~/.ssh
# chmod 700 ~/.ssh
# echo $SSH_KEY > ~/.ssh/glove.prv
# chmod 600 ~/.ssh/glove.prv
#
- name: Run Ansible
uses: dawidd6/action-ansible-playbook@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion devops/ansible/inventory_aws_ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ hostnames:
compose:
ansible_host: public_ip_address
ansible_user: ec2-user
ansible_ssh_private_key_file: ~/.ssh/glove.prv
# ansible_ssh_private_key_file: ~/.ssh/glove.prv
# profile: glove-test

0 comments on commit 98fd084

Please sign in to comment.