Commit Graph

39 Commits

Author SHA1 Message Date
Michal Konecny
2ec055db6f Use first uppercase letter for all handlers
This will unify all the handlers to use first uppercase letter for
ansible-lint to stop complaining.

I went through all `notify:` occurrences and fixed them by running
```
set TEXT "text_to_replace"; set REPLACEMENT "replacement_text"; git grep
-rlz "$TEXT" . | xargs -0 sed -i "s/$TEXT/$REPLACEMENT/g"
```

Then I went through all the changes and removed the ones that wasn't
expected to be changed.

Fixes https://pagure.io/fedora-infrastructure/issue/12391

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-10 20:31:49 +00:00
Kevin Fenzi
1f8751a00c xinetd: no change in case on xinetd restart
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-01-15 17:17:08 -08:00
Kevin Fenzi
1145fa67a6 rsyncd: fix notifier case
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-01-15 17:16:12 -08: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
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
Ryan Lerch
89f6f1fc32 Fix majority of remaining yamllint warnings and errors
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2024-11-28 17:31:45 +10:00
Stephen Smoogen
432a3a497b Go through and remove entries for EL6 and EL7
Using `git grep el6` and `git grep el7` and variants like EL-7 or
el-7, I found various entries and files which were no longer needed
with the current ansible. I updated text or tests to later versions of
RHEL as needed.

found entries for the fedora ami's for the original cloud and removed
those entries also.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2024-07-03 22:20:30 +00:00
Kevin Fenzi
7139709ebd rsyncd: modernize tasks for fedora and rhel versions with xinetd and rsyncd.service
We don't have any more fedora instances that are f34 or before (with
xinetd was dropped) and now we have some rhel9 hosts that don't have
xinetd.

So, adjust the tasks to always use the systemd service on fedora and
rhel9 and use xinetd on rhel7/8.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-04-06 14:12:49 -07:00
Kevin Fenzi
261879c688 rsyncd: use systemd service on rhel9 as well as fedora
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-03-15 15:34:32 -07:00
Kevin Fenzi
36eaa708fa rsyncd: fix correctly this time (I hope)
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-01-24 16:22:03 -08:00
Kevin Fenzi
14a7ec3046 rsyncd: fix conditional harder
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-01-24 16:16:11 -08:00
Kevin Fenzi
921add1320 dns: adjust conditionals for dns servers using rhel9
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-01-24 16:07:50 -08:00
Kevin Fenzi
5b5b2c0b4d rsyncd: drop restarting xinetd handler for fedora hosts, it no longer exists
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-05-25 16:24:08 -07:00
seddikalaouiismaili
dc576316fd replace xinetd by systemd for fedora >= 34 2021-09-29 18:51:19 +00:00
Rick Elrod
2151aee9fd rsyncd: try to fix role for python3 boxen
Signed-off-by: Rick Elrod <relrod@redhat.com>
2020-04-24 21:34:18 +02:00
Kevin Fenzi
81fb4582e7 ansible: change when conditions to use == instead of is when checking strings.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:10 +02:00
Karsten Hopp
c9ed62ac32 update ansible_distribution_major_version conditionals
Signed-off-by: Karsten Hopp <karsten@redhat.com>
2020-04-24 21:34:10 +02:00
Karsten Hopp
d0f4549304 rsyncd: dnf -> package, with_item changes 2019-06-11 16:10:11 +00:00
Patrick Uiterwijk
adcbf72f03 Packageize this, packageize that, packageize the world
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-10-08 22:25:52 +00:00
Stephen Smoogen
3f7298ce8d ok we use a template for the download servers and not for the rest 2017-06-27 13:39:17 +00:00
Stephen Smoogen
eb97e01e9d well looks like I didnt commit this afterall 2017-06-26 18:30:27 +00:00
Kevin Fenzi
a5baef4d61 fix this variable issue another way 2017-03-09 21:10:50 +00:00
Kevin Fenzi
acad15248c add tags to rsyncd role 2017-03-09 21:08:00 +00:00
Kevin Fenzi
08c6cf0497 change order here so things actually work 2017-03-09 21:02:49 +00:00
Kevin Fenzi
42afc9a637 Fix a bunch of places that didn't use the full correct mode 2016-08-08 19:53:57 +00:00
Kevin Fenzi
04a52b8667 Death to all trailing whitespace. 2016-08-08 19:36:31 +00:00
Kevin Fenzi
a32f8b9e4a Change ansible_fqdn to inventory_hostname. This fixes some few hosts that have incorrect reverse dns
and shouldn't break any others since we always use fully qualified in our inventory.
2016-05-11 15:08:50 +00:00
Kevin Fenzi
f0c80375b5 Remove action: in all roles. 2016-01-06 21:58:31 +00:00
Kevin Fenzi
2e1bf254a5 Another one. 2015-11-09 17:45:16 +00:00
Praveen Kumar
4b1e5162d7 Update state from installed/removed to present/absent for yum module as per latest documents -> http://docs.ansible.com/yum_module.html 2014-11-05 15:32:11 +00:00
Ricky Elrod
8b59c4a93f This needs libsemanage-python
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
2014-07-29 21:24:48 +00:00
Kevin Fenzi
8fc6694c5f Set some sebools on sundries. 2014-05-21 17:38:51 +00:00
Kevin Fenzi
ec4b02c539 In staging, host_group is automagically staging, so use rsync_group instead here. 2014-05-21 15:47:07 +00:00
Ricky Elrod
989f4f1e6b More downloadXX fun 2014-05-15 03:31:02 +00:00
Kevin Fenzi
38f0c628ba Kinda need xinetd as well. 2014-03-17 16:11:23 +00:00
Kevin Fenzi
36cc6f7cb1 Tweak service 2014-03-17 16:09:11 +00:00
Kevin Fenzi
7316ef1ca3 Add a rsyncd role. For now just to sync logs to log02, but can be extended to download later. 2014-03-17 15:55:26 +00:00