r/useproxy: Configure system-wide proxy

The *useproxy* role configures the `http_proxy` et al. environmet
variables for systemd services and interactive shells.  Additionally, it
configures Yum repositories to use a single mirror via the `baseurl`
setting, rather than a list of mirrors via `metalink`, since the proxy
a) the proxy only allows access to _dl.fedoraproject.org_ and b) the
proxy caches RPM files, but this is only effective if all clients use
the same mirror all the time.

The `useproxy.yml` playbook applies this role to servers in the
*needproxy* group.
This commit is contained in:
2024-08-12 17:44:10 -05:00
parent f51e0fe2a9
commit 7b61a7da7e
8 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
- name: reload systemd
systemd:
daemon_reload: true
- name: reset connection
meta: reset_connection