Here is the self variables. They are read from a settings.yml and are set
during execution
self.data = data
self.host = data['host']
self.hostname = data['hostname']
self.conn_name = data['conn_name']
if ipam.ip:
self.guest_ip4_address = ipam.restart_ip
else:
self.guest_ip4_address = data['guest_ip4_address']
if ipam.ip:
self.guest_ip4_address_for_restart = ipam.ip
else:
self.guest_ip4_address_for_restart = data['guest_ip4_address_for_restart']
if ipam.gw:
self.guest_gw4_address = ipam.gw
else:
self.guest_gw4_address = data['guest_gw4_address']
self.template_ip = data['template_ip']
self.host = data['host']
self.hostname_hosts = data['hostname_hosts']
self.hostname_playbook_path = data['hostname_playbook']
self.ip_playbook_path = data['ip_playbook']
self.logger = logger
and at the yml file here is the line:
host: 'default'
hostname_hosts: '/full/path/of/the/file/hosts'
So i am setting the hosts file location i sent with my previous email.
On Mon, Oct 24, 2016 at 4:37 PM, Brian Coca <[email protected]> wrote:
> You don't show how/where you define `self.hostname_hosts`.
>
>
> ----------
> Brian Coca
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/ansible-project/p8OzBaUbjpU/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CACVha7cTCgv%2BGXOjcGXhewNSQT-
> B7CPM3%3DYPGL_ryG6yiD7rOw%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CACVha7cTCgv%2BGXOjcGXhewNSQT-B7CPM3%3DYPGL_ryG6yiD7rOw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
Oğuz Yarımtepe
http://about.me/oguzy
--
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/CAKtWOTRiupHZ692MgYOh5BkvEnej9tt%2BLzgp7J9ES2X3ek_1QA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.