Hi, I think I sorted this our, seems be working now as expected:
This is a snipped which must be used for local facts: ansible_local = facts.get('ansible_local', None) cur.execute("REPLACE INTO modules (host, name, status, version) VALUES(?,?,?,?);", ( facts.get('ansible_hostname', None), ansible_local["apache"]["name"], ansible_local["apache"]["status"], ansible_local["apache"]["version"] )) Best regards, Marcin Praczko -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9b8b0ba4-a5e4-4061-a441-95ee373ce636%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.