From 90b6c6762553b430bd5cf40f6ab26c67e770a016 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Fri, 7 Feb 2020 16:16:12 +0300 Subject: Jenkinsfile: Set ANSIBLE_STDOUT_CALLBACK to actionable. * Jenkinsfile: Set ANSIBLE_STDOUT_CALLBACK to actionable. --- Jenkinsfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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") { -- cgit v1.2.3