V
V
Venot2020-07-01 22:37:37
System administration
Venot, 2020-07-01 22:37:37

How to run playbook in pipeline (jenkins) with env?

env ANSIBLE_STDOUT_CALLBACK=debug ansible-playbook playbook1.yaml so my playbook is running, how do I pass env parameter ANSIBLE_STDOUT_CALLBACK=debug to pipeline?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-07-01
@q2digger

Jenkins documentation.
https://www.jenkins.io/doc/book/pipeline/jenkinsfi...
In addition, there are plugins that allow you to insert your own variables, one of the most popular is
https://plugins.jenkins.io/envinject/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question