---
- 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
---
- hosts: test
pre_tasks:
- name: Read host
connection: local
route53:
command: get
zone: ZONE
record: RECORD
type: A
register: host_record
roles:
- test
Running route53 or ec2 locally using host: localhost works as expected. What am I missing?
Do you have boto installed on your machine?
---
- hosts: remote_host
pre_tasks:
- name: Read host
connection: local
route53:
command: get
zone: ZONE
record: RECORD
type: A
register: host_record
roles:
- test
--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/efabc0bd-0952-4830-9105-bc56ac2f6d39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@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/efabc0bd-0952-4830-9105-bc56ac2f6d39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/efabc0bd-0952-4830-9105-bc56ac2f6d39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f7823de7-dcba-40c5-8c6b-9cefd50a73eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.