0.0066
This commit is contained in:
@@ -12,8 +12,8 @@ jobs:
|
||||
run: |
|
||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > /tmp/id_fin
|
||||
chmod 600 /tmp/id_fin
|
||||
# - name: Install Ansible collection
|
||||
# run: ansible-galaxy collection install community.docker
|
||||
- name: Install Ansible collection
|
||||
run: ansible-galaxy collection install community.docker
|
||||
- name: Create inventory
|
||||
run: echo "${{ secrets.INVENTORY }}" > inventory.ini
|
||||
- name: Create secrets.yml
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
sparse-checkout: |
|
||||
ansible/deploy.yml
|
||||
- name: Run Ansible playbook
|
||||
run: ansible-playbook -i inventory.ini tmp-repo/ansible/deploy.yml -e @secrets.yml
|
||||
run: ansible-playbook -i inventory.ini tmp-repo/ansible/deploy.yml -e @secrets.yml -e env_file="$(pwd)/.env"
|
||||
env:
|
||||
ANSIBLE_PRIVATE_KEY_FILE: /tmp/id_fin
|
||||
ANSIBLE_HOST_KEY_CHECKING: "False"
|
||||
|
||||
Reference in New Issue
Block a user