pipeline { agent { label "master" } triggers { cron("H 16 * * *") } environment { ANSIBLE_STDOUT_CALLBACK = "actionable" } stages { stage("Fetch data") { steps { sh (["ansible", "--limit", "'majordomo:!router-miran1.intr:!vpn-dh.majordomo.ru:!router4.intr!:!deprecated'" , "-m", "setup", "--tree", "/home/oleg/ansible-out/out", "majordomo"].join(" ")) } } stage("Generate reports") { steps { dir("/home/oleg/ansible-out") { sh "env PATH=/home/oleg/bin:$PATH /home/oleg/.local/bin/ansible-cmdb -t html_fancy_split -p local_js=1 /home/oleg/ansible-out/out" } } } } }