File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ jobs:
110
110
fb62a8d1-6dd5-4fab-aff4-b23e0021e215 > npm_host
111
111
90a16954-45df-49ad-9f45-b23e002273c5 > runner_host
112
112
a5b6fa4b-4643-4f85-988b-b23e00245e2f > ubu_host
113
+ 26b06759-9791-42d7-a076-b23e0063c4dd > ssh_private_key
113
114
114
115
115
116
- name : Create hosts.ini file
@@ -128,11 +129,21 @@ jobs:
128
129
ubu.lan ansible_host=${{ steps.bitwarden-secrets.outputs.ubu_host }} ansible_user=mafyuh
129
130
EOF
130
131
132
+ - name : Create Private key
133
+ run : |
134
+ cat <<EOF > /root/.ssh/id_rsa
135
+ ${{ steps.bitwarden-secrets.outputs.ssh_private_key }}
136
+ EOF
137
+
138
+ - name : Set permissions for private key
139
+ run : |
140
+ chmod 600 /root/.ssh/id_rsa
141
+
142
+
131
143
- name : Run Ansible Playbook
132
144
uses : docker://mafyuh/ansible-bws:v1.0.4
133
145
with :
134
146
args : ansible-playbook -i ansible/hosts.ini ./ansible/playbooks/deploy-docker.yml --extra-vars "target_host=${{ env.target_host }} folder=${{ env.folder }}"
135
147
env :
136
148
BWS_ACCESS_TOKEN : ${{ secrets.BWS_ACCESS_TOKEN }}
137
- SSH_PRIVATE_KEY : ${{ secrets.SSH_PRIVATE_KEY }}
138
149
ANSIBLE_CONFIG : ansible/ansible.cfg
You can’t perform that action at this time.
0 commit comments