summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2020-02-07 16:16:12 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2020-02-07 16:41:35 +0300
commit90b6c6762553b430bd5cf40f6ab26c67e770a016 (patch)
tree34eda0735414701ec82027ec73bac92430a97fb6
parentInitial commit. (diff)
downloadansible-cmdb-majordomo-90b6c6762553b430bd5cf40f6ab26c67e770a016.tar.gz
Jenkinsfile: Set ANSIBLE_STDOUT_CALLBACK to actionable.
* Jenkinsfile: Set ANSIBLE_STDOUT_CALLBACK to actionable.
-rw-r--r--Jenkinsfile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 6d5c430..63715c9 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -2,10 +2,17 @@ pipeline {
agent {
label "master"
}
+ environment {
+ ANSIBLE_STDOUT_CALLBACK = "actionable"
+ }
stages {
stage("Fetch data") {
steps {
- sh "ansible -m setup --tree /home/oleg/ansible-out/out majordomo"
+ sh (["ansible",
+ "--limit", "'majordomo:!router-miran1.intr:!vpn-dh.majordomo.ru'"
+ , "-m", "setup",
+ "--tree", "/home/oleg/ansible-out/out",
+ "majordomo"].join(" "))
}
}
stage("Generate reports") {