I am trying to use the route53 module in a playbook. If i install boto and add credentials the play works (reading a record and registering it), however I want to know if I can do this locally (where boto is installed) and have that registered variable available on remote hosts.
Example playbook;
---
- hosts: localhost
connection: local
tasks:
- name: Read current host
route53:
command: get
zone: zone
record: record
type: A
register: host_record
- hosts: remote_hosts
sudo: True
gather_facts: True
roles:
- my_role
This doesn't work, the variable host_record isn't available on the remote
host. I would like to know if it's possible and what I am doing incorrectly.
Thanks
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/cdd5e4ca-572e-434f-aacb-808edac0e07b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
