Commit graph

78 commits

Author SHA1 Message Date
Kevin Fenzi
bdfd9d8517 batcave02: drop batcave02, it's batcave01 now.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-07-13 17:21:50 -07:00
Aurélien Bompard
bf4f2c898a
Enable the fedora messaging callback plugin in ansible
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-05-23 10:28:49 +02:00
Aurélien Bompard
bf24d014bd
Make the python3 fact module compatible with python2 for EL7 boxes
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-05-23 08:33:17 +02:00
Kevin Fenzi
6679b35345 ansible: disable python3_fact gathering as it's broken on el7
el7 hosts don't have python3 installed normally, so this fact fails. ;(

"failed_modules": {"python3_fact": {"failed": true, "module_stderr": "/usr/bin/env: python3: No such file or directory\n",

So, lets just disable for now until we can fix it.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-05-16 15:17:49 -07:00
Aurélien Bompard
5e80355057
Add a fact module to get information about python3 installations
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-05-10 17:49:17 +02:00
Kevin Fenzi
a9bb7f2254 batcave02: no ansible-collection-community-docker right now, so exclude it on rhel9
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-03-28 14:32:44 -07:00
Kevin Fenzi
1105c72692 ansible /server: fix name of collection
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-06-07 11:09:00 -07:00
Maxwell G
1186d20cb2 ansible-server: Use git-core instead of git. 2022-06-07 17:45:35 +00:00
Maxwell G
b20a0b5495 ansible-server: Use RPM collection packages
We now have all the collections that are used by Fedora Infra packaged
for EPEL 8 (the ansible control host runs on RHEL 8, as far as I know),
except community.postgresql. ansible-collection-community-rabbitmq[1]
and ansible-collection-community-libvirt[2] are new packages that are
still in epel8-next testing, so I would wait to merge this until they're
pushed.

I would also recommend clearing the current collections directory (`rm
-rf ~/.ansible/ansible_collections/*`) before merging this to ensure
that ansible uses the packaged versions and not the old versions that
were installed with ansible-galaxy.

[1]: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-a7237cc021
[2]: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-a9ccbc0012

Signed-off-by: Maxwell G <gotmax@e.email>
2022-06-07 17:45:35 +00:00
Kevin Fenzi
80b61920c2 Revert "Install newer nbde_client collection from git."
This reverts commit 3916970463.
2022-05-12 18:28:35 -07:00
Kevin Fenzi
3916970463 Install newer nbde_client collection from git.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-05-12 18:27:08 -07:00
Kevin Fenzi
b43fba8103 ansible-server: move inventory to the right place
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-04-04 15:33:10 -07:00
Kevin Fenzi
21c3ea8380 ansible-server: fix another jinja in comment
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-04-04 15:24:54 -07:00
Kevin Fenzi
f1edf4a3e3 ansible-server: fix another jinja in comment
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-04-04 15:23:28 -07:00
Kevin Fenzi
222b836dae ansible-server: fix another jinja in comment
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-04-04 15:22:25 -07:00
Kevin Fenzi
14373ccd14 ansible-server: fix another jinja in comment
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-04-04 15:20:27 -07:00
Kevin Fenzi
16ff4bb937 ansible-server: fix jinja in comment
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-04-04 15:19:12 -07:00
Kevin Fenzi
9395e8822e ansible-server: rebase config for 2.12 from 2.9.
In 2.12 this file is generated with all the options commented out and
showing the defaults. I went and enabled/set everything we had in the
old 2.9 one so hopefully this is all good.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-04-04 15:06:53 -07:00
Kevin Fenzi
92d5e704fa ansible-server: Fix requirements.yml path
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-04-04 15:06:29 -07:00
Kevin Fenzi
5869239c9c batcave01 / ansible_server: disable fedora-messaging callback for now.
It doesn't work with python3.8 ansible-core.
I would really like to find a way to do this however.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-04-04 14:27:15 -07:00
Kevin Fenzi
f2eb6caf29 Revert "Revert "batcave: switch to ansible-core + some collections instead of ansible 'classic'""
This reverts commit dc1f503bdd.
2022-04-04 14:27:00 -07:00
Kevin Fenzi
dc1f503bdd Revert "batcave: switch to ansible-core + some collections instead of ansible 'classic'"
This reverts commit 78ba658d3c.
2022-03-30 13:06:52 -07:00
Kevin Fenzi
78ba658d3c batcave: switch to ansible-core + some collections instead of ansible 'classic'
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-03-30 12:14:47 -07:00
Rick Elrod
a4b89d6d0b set ansible caching back to jsonfile
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-06-06 15:33:24 -05:00
Kevin Fenzi
bd59b6287a ansible server: fix python2 vs python3 paths in config
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-05 18:56:21 -07:00
Kevin Fenzi
001a28e583 ansible / server: also comment out that plugin in config
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-03 10:25:26 -07:00
Pierre-Yves Chibon
e060e7efa1 Rename the fedora_messaging callback and enable it in ansible
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-05-14 22:32:21 +02:00
Kevin Fenzi
4957a811f1 ansible: try and clean up callback_plugins
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-05-14 12:30:10 -07:00
Kevin Fenzi
8b408c8a79 ansible-server: fix roles path to work with linux-system-roles
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-05-12 16:11:20 -07:00
Kevin Fenzi
a53f65d164 dns: add a 10.16.0.0 reverse dns zone so s390 builders will resolve for reverse dns. 2020-04-24 21:34:27 +02:00
Kevin Fenzi
12287e3e23 ansible server: set interpreter_python to auto instead of auto_legacy (default)
This will cause ansible command line to also detect things the way our playbooks do.
ie, prefer python3

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:20 +02:00
Rick Elrod
05efd6c0e7 and use it
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:15 +02:00
Kevin Fenzi
ca87780119 ansible: try and move the ansible_python_interpreter setting to group_vars/all
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-05-30 22:34:06 +00:00
Kevin Fenzi
5caa9024c5 ansible: drop each host/group setting ansible_python_interpreter and just change the interpreter_python value on the control host.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-05-30 21:59:28 +00:00
Kevin Fenzi
3a5f3c7894 ansible-server: just switch to all scp
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-04-09 18:59:13 +00:00
Kevin Fenzi
678e78acab ansible-server: switch transport to use scp first, then piped, and only then sftp
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-04-09 18:54:09 +00:00
Kevin Fenzi
c44bb085a1 add fuse.glusterfs to list of special filesystems 2018-08-20 20:50:32 +00:00
Kevin Fenzi
da8324764f Drop special remote_tmp casing for targets with become, instead just switch everything to use /tmp for remote tmp.
ansible picks a pretty random dir and this works with the case of users who cannot write to their homedir.
2018-07-11 21:29:29 +00:00
Kevin Fenzi
4abad78f55 make the facts cache use ~ 2018-07-02 18:46:10 +00:00
Kevin Fenzi
2ddec06c5c enable constructed inventory plugin even though it does not do what I want yet 2018-06-14 23:14:52 +00:00
Kevin Fenzi
3c8866abbd lets try some fact caching 2018-05-18 17:18:42 +00:00
Kevin Fenzi
8a8980044d we need merge behavior here for osbs 2017-11-20 23:38:03 +00:00
Kevin Fenzi
b55efeaa61 put forks back to pre ansible 2.4 value for more testing 2017-10-17 17:43:16 +00:00
Kevin Fenzi
10293f57dd try 90 here 2017-10-16 13:59:25 +00:00
Kevin Fenzi
5487e61986 no compression at all 2017-10-16 03:43:21 +00:00
Kevin Fenzi
f815304250 perhaps this is causing the mem issue 2017-10-16 02:50:22 +00:00
Kevin Fenzi
bbd16eaec5 try decreasing forks a bit 2017-10-16 01:14:40 +00:00
Kevin Fenzi
69fd8d117a switch all the handlers to import and drop the global static import 2017-10-15 20:29:59 +00:00
Kevin Fenzi
07bc405e04 no retry files please 2017-10-15 20:12:16 +00:00
Kevin Fenzi
ceff9bfca4 first stab at replacing include with include_playbook or includ_tasks 2017-10-15 19:46:08 +00:00