Kevin Fenzi
a754144f19
Update infra pagure.io links to forge.fp.o (WIP)
...
This should update all the references we have to
https://pagure.io/fedora-infrastructure to the
new https://forge.fedoraproject.org/infra/tickets/ area.
Do not merge this before the migration on tuesday.
Signed-off-by: Kevin Fenzi <kevin@scrye.com >
2026-01-20 14:39:40 -08:00
James Antill
5b850ae499
ansible: Add config tag to ansible.cfg.
...
Signed-off-by: James Antill <james@and.org >
2025-10-02 16:02:07 -04:00
James Antill
40f024ab64
ansible: Set conn. retries to 4, for tasks with large num. of hosts.
...
Signed-off-by: James Antill <james@and.org >
2025-10-02 15:56:09 -04:00
Michal Konecny
2f1ee9e0d6
[ansible-server] Set transfer_method to smart
...
When trying to run the playbook for
bvmhost-p09-05.rdu3.fedoraproject.org I encountered an error when
copying files through scp. After some digging I found this in the
ansible documentation
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/ssh_connection.html#parameter-ssh_transfer_method
and it helped with that.
Let's make the change permanent with this commit.
2025-07-29 14:19:10 +02:00
Greg Sutcliffe
0e60fc6eaf
Zabbix-stg: bump collection to 3.3.0 and re-enable user
2025-04-24 17:29:01 +00:00
Kevin Fenzi
b462a186ee
batcave / ansible_server: pin 2 collections that we want specifc versions of.
...
We want to pin to these versions as the ones that get pulled in by other
collections are too new and don't support our ansible-core version.
Signed-off-by: Kevin Fenzi <kevin@scrye.com >
2025-03-27 12:30:54 -07:00
Kevin Fenzi
1251149241
ansible-server: fix requirements to list collections under collections
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com >
2025-03-20 14:00:57 -07:00
Kevin Fenzi
a04451450d
batcave / ansible-server: specifcy any local ansible collections
...
We want to specify the exact collections we install and the version so
that we know whats installed and what version it is.
Ideally we would install all the collections via rpms.
When thats not possible, we should install them via ansible
so they are tracked and known, and we can update them as needed.
Any other collections locally installed that I couldn't find a caller
for have been removed. We can easily add them here if there's more we
want to install.
Signed-off-by: Kevin Fenzi <kevin@scrye.com >
2025-03-19 14:45:01 -07:00
Mark Rosenbaum
a02fffedb3
Update roles/ansible-server/files/requirements.yml - added community.zabbix 3.0.0
...
Added community.zabbix version 3.0.0
Fixes Zabbix breaking releng compose playbooks.
2025-03-19 21:26:43 +00:00
Ryan Lerch
47c68f478d
ansiblelint fixes - fqcn[action-core] - template to ansible.builtin.template
...
Replaces references to template: with ansible.builtin.template
Signed-off-by: Ryan Lerch <rlerch@redhat.com >
2025-01-15 11:30:29 +10:00
Ryan Lerch
25391e95b7
ansiblelint fixes - fqcn[action-core] - package to ansible.builtin.package
...
Replaces many references to package: with ansible.builtin.package
Signed-off-by: Ryan Lerch <rlerch@redhat.com >
2025-01-15 11:28:00 +10:00
Ryan Lerch
462176464b
ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command
...
Replaces many references to command: with ansible.builtin.command
Signed-off-by: Ryan Lerch <rlerch@redhat.com >
2025-01-15 11:26:47 +10:00
Ryan Lerch
6a3816dfdc
ansiblelint fixes-- fqcn[action-core] - copy to ansible.builtin.copy
...
Replaces many references to 'copy' with ansible.builtin.copy
Signed-off-by: Ryan Lerch <rlerch@redhat.com >
2025-01-15 10:43:31 +10:00
Ryan Lerch
691adee6ee
Fix name[casing] ansible-lint issues
...
fix 1900 failures of the following case issue:
`name[casing]: All names should start with an uppercase letter.`
Signed-off-by: Ryan Lerch <rlerch@redhat.com >
2025-01-14 20:20:07 +10:00
Jakub Kadlcik
33007228c1
ansible-server: use ansible-collection-community-postgresql package
2023-08-19 21:26:58 +00:00
Jakub Kadlcik
07aab73f52
ansible-server: add requirements for copr-pulp playbooks
...
Fix https://pagure.io/fedora-infrastructure/issue/11396
2023-08-19 21:26:58 +00:00
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