--- - name: create Server Inventory Liste hosts: localhost tasks: - name: Execute ansiblecmdb on local host command: cmd: "ansible-cmdb -p local_js=1 -t html_fancy -i ../inventory ../output/" args: chdir: ./report_templates/ register: serverCMDB # - debug: var=serverCMDB.stdout - name: Write variable to file local_action: copy content="{{serverCMDB.stdout}}" dest=/var/lib/awx/public/static/enviroment/index.html