refactor: move ANSIBLE_HOST_KEY_CHECKING environment variable to update-proxmox job
This commit is contained in:
@@ -48,8 +48,6 @@ jobs:
|
|||||||
image: alpine/ansible:2.18.6
|
image: alpine/ansible:2.18.6
|
||||||
steps:
|
steps:
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
env:
|
|
||||||
ANSIBLE_HOST_KEY_CHECKING: 'False'
|
|
||||||
run: |
|
run: |
|
||||||
apk add git
|
apk add git
|
||||||
git clone https://gitea.akshun-lab.uk/akshun/ansible.git /mnt
|
git clone https://gitea.akshun-lab.uk/akshun/ansible.git /mnt
|
||||||
@@ -57,5 +55,7 @@ jobs:
|
|||||||
echo "${{ secrets.ANSIBLE_BECOME_PASS }}" > /mnt/become-pass.txt && \
|
echo "${{ secrets.ANSIBLE_BECOME_PASS }}" > /mnt/become-pass.txt && \
|
||||||
chmod 600 /mnt/default-key
|
chmod 600 /mnt/default-key
|
||||||
- name: Update proxmox nodes
|
- name: Update proxmox nodes
|
||||||
|
env:
|
||||||
|
ANSIBLE_HOST_KEY_CHECKING: 'False'
|
||||||
run: |
|
run: |
|
||||||
ansible-playbook -i /mnt/inventory.yml --vault-pass-file /mnt/become-pass.txt --key-file /mnt/default-key /mnt/playbooks/update-proxmox.yml
|
ansible-playbook -i /mnt/inventory.yml --vault-pass-file /mnt/become-pass.txt --key-file /mnt/default-key /mnt/playbooks/update-proxmox.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user