Skip to content

Commit

Permalink
Fix ssh key permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ikambarov-ec authored Jan 6, 2024
1 parent 18700dd commit c5ef3d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
/opt/pipx/venvs/ansible-core/bin/python -m pip install boto3 botocore
- name: Import SSH Key
run: echo "${{ secrets.ANSIBLE_SSH_KEY }}" > ansible-key
run: |
echo "${{ secrets.ANSIBLE_SSH_KEY }}" > ansible-key
chmod 400 ansible-key
- name: Execute Ansible PLaybook
run: ansible-playbook -i aws_ec2.yml --private-key=ansible-key main.yml -u centos -b

0 comments on commit c5ef3d6

Please sign in to comment.