pipeline { agent { label "master" } triggers { cron("H 16 * * *") } environment { ANSIBLE_STDOUT_CALLBACK = "actionable" ANSIBLE_FORCE_COLOR = "True" } stages { stage("Fetch data") { agent { label "guixsd" } steps { ansiColor("xterm") { 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") { agent { label "guixsd" } steps { sh(["docker", "run", "--workdir", "/home/oleg/ansible-out", "--network=host", "--name", "ansible-cmdb", "--rm", "--volume", "/home/oleg/ansible-out:/home/oleg/ansible-out", "ansible-cmdb", "ansible-cmdb", "--template", "html_fancy_split", "-p", "local_js=1", "/home/oleg/ansible-out/out"].join(" ")) } } } }