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:
- ansible-base
- ansible.posix collection
- 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
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
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.
Pe marți, 6 octombrie 2020, la 09:36:28 UTC+3, Felix Fontein a scris: