Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635990 - app-admin/ansible should install /etc/ansible/ansible.cfg and /etc/ansible/hosts
Summary: app-admin/ansible should install /etc/ansible/ansible.cfg and /etc/ansible/hosts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-31 09:33 UTC by Xiami
Modified: 2017-11-06 05:47 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xiami 2017-10-31 09:33:24 UTC
ansible tarball provides two all-commented ansible.cfg and hosts files in ansible-${PV}/examples/

They provide essential knowledge of ansible config and ansible inventory without changing any default value. (An newbie would benefit a lot from them.)

I suggest put them into /etc/ansible since system-level ansible config is searched under /etc/ansible/ansible.cfg and inventory file defaults to /etc/ansible/hosts
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-10-31 21:59:16 UTC
How about naming them foo.sample instead (to call out what they are)?  I do the same with openstack packages.
Comment 2 Xiami 2017-11-06 04:29:14 UTC
It's better. :)

I suggested preserving file names because they are nearly all commented and do nothing when being parsed, under current version(2.4.0.0). Since it's not a guarantee for the future versions, adding file name suffix provides consistent behavior. (also avoid dispatch-conf/etc-update calling huh?)

Installing them into /usr/share/doc/${PF}/ may also be accepted.
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-11-06 05:47:24 UTC
It looks like 9999 was already installing the examples via dodoc, so I revbumped 2.4.1.0 to install the docs there.