Host Module

29 views
Skip to first unread message

Paul Wolstenholme

unread,
Apr 16, 2014, 9:42:49 PM4/16/14
to ansible...@googlegroups.com
I've just upgrade to Ansible 1.5.4. It's awesome. I had been using the host module in the version I had upgrade from.  Just wondering what the status of the host module. Is it permanently dead.

Cheers,
Paul

Michael DeHaan

unread,
Apr 16, 2014, 9:57:53 PM4/16/14
to ansible...@googlegroups.com
Thanks!

Host module was pulled due to non-workiness in a development version IIRC, of which form of non-workiness, I don't particularly remember.

I think a lot of it had to do with not understanding the topology of the host file and being rather line oriented, such as if you remove something that is a record or an alias, what does it do with the other aliases or records.

I'd *possibly* be open to including a working one, though I do generally feel /etc/host files are better managed with templates most of the time.

It might take some doing.







--
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/da0802a8-8916-41c4-8dce-c9bf7333f2a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paul Wolstenholme

unread,
Apr 17, 2014, 3:54:27 PM4/17/14
to ansible...@googlegroups.com

If I recall correctly, I originally used templates for the purpose. Sometimes it is easy to get carried away trying to use every possible module :-) I've seen people get a bit fancy with lineinfile as well (https://gist.github.com/rothgar/8793800). But, I think I'll go back to using the templates module. 

Thanks,
Paul 

Michael DeHaan

unread,
Apr 17, 2014, 6:17:37 PM4/17/14
to ansible...@googlegroups.com
Yay, a convert!  :)

It's definitely way easier.





--
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.
Reply all
Reply to author
Forward
0 new messages