diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 6004b32..18118e0 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -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