Any thoughts on if it is possible to pass secrets to the
(I’d prefer to use repo secrets if possible)
set additional variables as key=value: ‘key1=value1,[key2=value2]’
Same here - wondering how we do that?
Hey guys. I was looking for a solution for the same thing and couldn’t find anything. So I came up with a workaround which works for my needs, although it’s probably not optimal.
The idea is to define all extra vars as a single secret. So I have an
ANSIBLE_EXTRA_VARS secret which looks like this (note that variables are space separated):
foo=bar ansible_become_pass=baz etc=foo
.drone.yml I simply use this secret and pass it to the step config:
- name: apply playbooks