🧧 Bring ya own images!~
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Sivert V. Sæther 2023-02-06 16:43:06 +01:00
parent 55e3b6904c
commit 1b363117be

View File

@ -4,22 +4,15 @@ type: docker
name: run updates name: run updates
steps: steps:
- name: setup ansible - name: run updates
image: alpine image: siverten/ansible
environment: environment:
PASS: PASS:
from_secret: pass from_secret: pass
KEY:
from_secret: key
commands: commands:
- sed -i "1s/^/[all:vars]\nansible_become_pass = $PASS\n/" servers.ini - sed -i "1s/^/[all:vars]\nansible_become_pass = $PASS\n/" servers.ini
- echo "\n[ssh_connection]\nssh_args = -o StrictHostKeyChecking no" >> ansible.cfg
- name: run updates - ansible-playbook site.yml -t update
image: plugins/ansible
settings:
inventory: servers.ini
playbook: site.yml
tags: update
verbose: 3
ssh_common_args: -o "StrictHostKeyChecking no"
private_key:
from_secret: key