Minimal ansible 2.10.x installation

39 views
Skip to first unread message

Anand Buddhdev

unread,
Oct 5, 2020, 4:45:16 AM10/5/20
to Ansible Project
Hi folks,

Now that ansible's code has been reorganised, I have a question about how to do a minimal installation. I am interested in just these 3 things:

1. ansible-base
2. ansible.posix collection
3. community collection

I can "pip install" ansible-base. However, is there any way I can have wheels of the 2 collections and "pip install" them easily across several hundred servers (for running ansible using the "local" connection plugin)?

Anand

Felix Fontein

unread,
Oct 6, 2020, 2:36:28 AM10/6/20
to ansible...@googlegroups.com
Hi Anand,

> Now that ansible's code has been reorganised, I have a question about
> how to do a minimal installation. I am interested in just these 3
> things:
>
> 1. ansible-base
> 2. ansible.posix collection
> 3. community collection

do you mean a specific community collection, or all of them, or all
included in Ansible 2.10?

See https://galaxy.ansible.com/community for a list of all community
collections, and
https://github.com/ansible-community/ansible-build-data/blob/main/2.10/ansible.in#L20-L36
for a list of them included in Ansible 2.10.

> I can "pip install" ansible-base. However, is there any way I can
> have wheels of the 2 collections and "pip install" them easily across
> several hundred servers (for running ansible using the "local"
> connection plugin)?

There is not (yet). While individual collections could be packaged as
Python packages, none I'm aware of have been packaged this way yet.

Right now, you could use `ansible-galaxy collection install` to install
them (together with the collections they depend on). If you want to
install them system-wide, you have to make sure to specify a
--collections-path which can be found by all users (f.ex. the place
where Ansible 2.10 installs the collections at).

Cheers,
Felix


Alex Cernat

unread,
Oct 6, 2020, 1:05:48 PM10/6/20
to Ansible Project
This is the minimal I'm using:

Collection           Version
-------------------- -------
ansible.netcommon    1.3.0
ansible.posix        1.1.1
community.crypto     1.1.1
community.general    1.2.0
community.kubernetes 1.0.0
community.mysql      1.0.2
google.cloud         1.0.0

With bold is what I've explicitly installed, the rest are probably dependencies of community.general, which in present is a "big ball of mud", hope that any exotic modules will migrate into their own space.
Reply all
Reply to author
Forward
0 new messages