Re:(1) I've found that I can do this: - hosts: localhost - name: Describe instances hosts: localhost gather_facts: false # Prevents immediately logging in to hosts tasks: - command: aws ec2 describe-instances register: result - debug: var=result.stdout|from_json However, really what I want to do is:
- hosts: localhost - name: Describe instance hosts: localhost gather_facts: *false* # Prevents immediately logging in to host tasks: - command: aws ec2 describe-instances register: x=from_json(result.stdout) - debug: var=x Possible? -- 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/448b7e2e-ebec-4b1e-9100-61bc8fd060bd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.