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>
This commit is contained in:
Michal Konecny 2025-02-07 13:51:07 +01:00 committed by kevin
parent 2ad6517991
commit 2ec055db6f
168 changed files with 566 additions and 566 deletions

View file

@ -2,207 +2,207 @@
# Handlers for restarting services
#
---
- name: reload systemd
- name: Reload systemd
ansible.builtin.command: systemctl daemon-reload
- name: restart apache
- name: Restart apache
ansible.builtin.command: /usr/local/bin/conditional-restart.sh httpd httpd
- name: reload apache
- name: Reload apache
action: service name=httpd state=reloaded
- name: restart collectd
- name: Restart collectd
action: service name=collectd state=restarted
- name: restart crond
- name: Restart crond
action: service name=crond state=restarted
- name: restart fedmsg-gateway
- name: Restart fedmsg-gateway
ansible.builtin.command: /usr/local/bin/conditional-restart.sh fedmsg-gateway
- name: restart fedmsg-hub
- name: Restart fedmsg-hub
ansible.builtin.command: /usr/local/bin/conditional-restart.sh {{ item }}
with_items:
- fedmsg-hub
- fedmsg-hub-3
- name: restart fedmsg-hub-3
- name: Restart fedmsg-hub-3
ansible.builtin.command: /usr/local/bin/conditional-restart.sh {{ item }}
with_items:
- fedmsg-hub
- fedmsg-hub-3
- name: restart fedmsg-irc
- name: Restart fedmsg-irc
ansible.builtin.command: /usr/local/bin/conditional-restart.sh fedmsg-irc
- name: restart fedmsg-relay
- name: Restart fedmsg-relay
ansible.builtin.command: /usr/local/bin/conditional-restart.sh fedmsg-relay
- name: restart fm-consumer@koji_sync_listener
- name: Restart fm-consumer@koji_sync_listener
action: service name=fm-consumer@koji_sync_listener state=restarted enabled=yes
- name: reload httpd
- name: Reload httpd
ansible.builtin.command: /usr/local/bin/conditional-reload.sh httpd httpd
- name: restart iptables
- name: Restart iptables
action: service name=iptables state=restarted
- name: restart ip6tables
- name: Restart ip6tables
action: service name=ip6tables state=restarted
- name: restart libvirtd
- name: Restart libvirtd
action: service name=libvirtd state=restarted
- name: restart virtnetworkd
- name: Restart virtnetworkd
action: service name=virtnetworkd state=restarted
- name: restart libvirtd.socket
- name: Restart libvirtd.socket
action: service name=libvirtd.socket state=stopped
notify: restart libvirtd
notify: Restart libvirtd
- name: restart mailman
- name: Restart mailman
action: service name=mailman state=restarted
- name: restart named
- name: Restart named
action: service name=named state=restarted
- name: restart ntpd
- name: Restart ntpd
action: service name=ntpd state=restarted
- name: restart sshd
- name: Restart sshd
action: service name=sshd state=restarted
- name: restart openvpn (Fedora)
- name: Restart openvpn (Fedora)
when: ansible_distribution == "Fedora"
action: service name=openvpn-client@openvpn state=restarted
# notify:
# - fix openvpn routing
# - Fix openvpn routing
- name: restart openvpn (RHEL7+)
- name: Restart openvpn (RHEL7+)
when: ansible_distribution == "RedHat" and ansible_distribution_major_version|int >= 7
action: service name=openvpn-client@openvpn state=restarted
# notify:
# - fix openvpn routing
# - Fix openvpn routing
- name: fix openvpn routing
- name: Fix openvpn routing
action: shell /etc/openvpn/fix-routes.sh
- name: restart xinetd
- name: Restart xinetd
action: service name=xinetd state=restarted
when: not inventory_hostname.startswith('proxy')
- name: restart netapproute
- name: Restart netapproute
action: command /etc/sysconfig/network-scripts/ifup-routes eth1
- name: restart network
- name: Restart network
action: service name=network state=restarted
- name: rebuild postfix transport
- name: Rebuild postfix transport
ansible.builtin.command: /usr/sbin/postmap /etc/postfix/transport
- name: rebuild postfix bysender
- name: Rebuild postfix bysender
ansible.builtin.command: /usr/sbin/postmap /etc/postfix/bysender
- name: rebuild postfix tls_policy
- name: Rebuild postfix tls_policy
ansible.builtin.command: /usr/sbin/postmap /etc/postfix/tls_policy
- name: restart postfix
- name: Restart postfix
service: name=postfix state=restarted
- name: reload proxyhttpd
- name: Reload proxyhttpd
ansible.builtin.command: /usr/local/bin/proxy-conditional-reload.sh httpd httpd
- name: run rkhunter
- name: Run rkhunter
ansible.builtin.command: rkhunter --propupd
- name: restart moksha-hub
- name: Restart moksha-hub
service: name=moksha-hub state=restarted
- name: restart dhcpd
- name: Restart dhcpd
service: name=dhcpd state=restarted
- name: restart memcached
- name: Restart memcached
service: name=memcached state=restarted
- name: restart nagios
- name: Restart nagios
ansible.builtin.shell: nagios -v /etc/nagios/nagios.cfg && systemctl restart nagios
- name: restart bridge
- name: Restart bridge
ansible.builtin.shell: /usr/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/bridge
- name: reload libvirtd
- name: Reload libvirtd
service: name=libvirtd state=reloaded
ignore_errors: true
when: ansible_virtualization_role == 'host'
- name: restart pagure_ev
- name: Restart pagure_ev
service: name=pagure_ev state=restarted
- name: "update ca-trust"
- name: Update ca-trust
ansible.builtin.command: /usr/bin/update-ca-trust
- name: restart stunnel
- name: Restart stunnel
service: name=stunnel state=restarted
- name: restart mirrorlist-server
- name: Restart mirrorlist-server
service: name=mirrorlist-server state=restarted
- name: restart NetworkManager
- name: Restart NetworkManager
service: name=NetworkManager state=restarted
- name: reload NetworkManager-connections
- name: Reload NetworkManager-connections
ansible.builtin.command: nmcli c reload
- name: restart basset-worker
- name: Restart basset-worker
service: name=basset-worker state=restarted
- name: apply interface-changes
- name: Apply interface-changes
ansible.builtin.command: nmcli con up {{ item.split()[1] }}
async: 1
poll: 0
loop: "{{ if_uuid.stdout_lines|flatten(levels=1) }}"
when: item.split()[1] not in ansible_ifcfg_disabled
- name: flush journald tmpfiles to persistent store
- name: Flush journald tmpfiles to persistent store
ansible.builtin.command: pkill -f -USR1 systemd-journald
- name: restart idmapd
- name: Restart idmapd
service: name=nfs-idmapd state=restarted
- name: restart buildmaster
- name: Restart buildmaster
service: name=buildmaster state=restarted
- name: restart rabbitmq
- name: Restart rabbitmq
systemd:
name: rabbitmq-server
state: restarted
daemon_reload: yes
- name: restart chronyd
- name: Restart chronyd
service: name=chronyd state=restarted
- name: restart kojira
- name: Restart kojira
systemd:
name: kojira
state: restarted
- name: restart haveged
- name: Restart haveged
service: name=haveged state=restarted
- name: restart obs-signd
- name: Restart obs-signd
service: name=signd state=restarted
- name: restart swap.swap
- name: Restart swap.swap
service: name="swap.swap" state=restarted
- name: restart varnish
- name: Restart varnish
service: name=varnish state=restarted
- name: reload varnish
- name: Reload varnish
service: name=varnish state=reload
- name: restart systemd-oomd
- name: Restart systemd-oomd
service: name=systemd-oomd state=reload
- name: restart debuginfod
- name: Restart debuginfod
service: name=debuginfod state=restarted

View file

@ -55,7 +55,7 @@
ansible.builtin.copy: src="{{ files }}/debuginfod/sysconfig.debuginfod" dest=/etc/sysconfig/debuginfod owner=root group=root mode=644
tags: debuginfod
notify:
- restart debuginfod
- Restart debuginfod
- name: Ensure systemd drop-in directory exists
ansible.builtin.file: >
@ -67,7 +67,7 @@
tags: debuginfod
ansible.builtin.copy: src="{{ files }}/debuginfod/debuginfod.service.d" dest=/etc/systemd/system/debuginfod.service.d/override.conf owner=root group=root mode=644
notify:
- restart debuginfod
- Restart debuginfod
- name: Ensure debuginfod is enabled and started
service:

View file

@ -50,7 +50,7 @@
service: HTTP
host: "id{{env_suffix}}.fedoraproject.org"
notify:
- combine IPA http keytabs
- Combine IPA http keytabs
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -140,7 +140,7 @@
ansible.builtin.copy: src=/root/ticketkey_{{env}}.tkey dest=/etc/httpd/ticketkey_{{env}}.tkey
owner=root group=root mode=0600
notify:
- reload proxyhttpd
- Reload proxyhttpd
#
# If this is an initial deployment, make sure docs are synced over.

View file

@ -19,7 +19,7 @@
dest=/etc/httpd/conf.d/apps.fedoraproject.org/fedora-releng-dash.conf
state=absent
tags: releng-dash
notify: reload proxyhttpd
notify: Reload proxyhttpd
roles:

View file

@ -23,7 +23,7 @@
- meetbot.fedoraproject.org/reversepassproxy.conf
- meetbot.fedoraproject.org/meetbot.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- httpd
- httpd/reverseproxy

View file

@ -22,7 +22,7 @@
- python3-copr-common
update_cache: true
notify:
- restart haveged
- Restart haveged
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -21,7 +21,7 @@
- python3-copr-common
update_cache: true
notify:
- restart haveged
- Restart haveged
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -36,4 +36,4 @@
ansible.builtin.copy: src=/root/ticketkey_{{env}}.tkey dest=/etc/httpd/ticketkey_{{env}}.tkey
owner=root group=root mode=0600
notify:
- reload proxyhttpd
- Reload proxyhttpd

View file

@ -1,7 +1,7 @@
---
- name: restart httpd
- name: Restart httpd
service: name=httpd state=restarted
- name: restart postgresql
- name: Restart postgresql
service: name=postgresql
state=restarted

View file

@ -1,10 +1,10 @@
---
- name: restart httpd
- name: Restart httpd
service:
name: httpd
state: restarted
- name: restart postgresql
- name: Restart postgresql
service:
name: postgresql
state: restarted

View file

@ -52,53 +52,53 @@
dest: /usr/lib/python3.6/site-packages/abrt-server-info-page/config.py
regexp: 'ADMINS ='
line: ' ADMINS = "infrastructure@lists.fedoraproject.org"'
notify: restart httpd
notify: Restart httpd
- name: Configure MORE_FAF
lineinfile:
dest: /usr/lib/python3.6/site-packages/abrt-server-info-page/config.py
regexp: 'MORE_FAF ='
line: ' MORE_FAF = "https://github.com/abrt/faf/"'
notify: restart httpd
notify: Restart httpd
- name: Configure MORE_RS
lineinfile:
dest: /usr/lib/python3.6/site-packages/abrt-server-info-page/config.py
regexp: 'MORE_RS ='
line: ' MORE_RS = "https://github.com/abrt/retrace-server"'
notify: restart httpd
notify: Restart httpd
- name: Configure MORE_ABRT
lineinfile:
dest: /usr/lib/python3.6/site-packages/abrt-server-info-page/config.py
regexp: 'MORE_ABRT ='
line: ' MORE_ABRT = "https://github.com/abrt/abrt/"'
notify: restart httpd
notify: Restart httpd
- name: Configure MORE_GABRT
lineinfile:
dest: /usr/lib/python3.6/site-packages/abrt-server-info-page/config.py
regexp: 'MORE_GABRT ='
line: ' MORE_GABRT = "https://github.com/abrt/gnome-abrt/"'
notify: restart httpd
notify: Restart httpd
- name: Configure MORE_LR
lineinfile:
dest: /usr/lib/python3.6/site-packages/abrt-server-info-page/config.py
regexp: 'MORE_LR ='
line: ' MORE_LR = "https://github.com/abrt/libreport/"'
notify: restart httpd
notify: Restart httpd
- name: Configure MORE_SATYR
lineinfile:
dest: /usr/lib/python3.6/site-packages/abrt-server-info-page/config.py
regexp: 'MORE_SATYR ='
line: ' MORE_SATYR = "https://github.com/abrt/satyr/"'
notify: restart httpd
notify: Restart httpd
- name: Configure URL_FOR_FAF
lineinfile:
dest: /usr/lib/python3.6/site-packages/abrt-server-info-page/config.py
regexp: 'URL_FOR_FAF ='
line: ' URL_FOR_FAF = "https://{{ faf_server_name }}"'
notify: restart httpd
notify: Restart httpd

View file

@ -9,56 +9,56 @@
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^max_connections ='
line: 'max_connections = 150'
notify: restart postgresql
notify: Restart postgresql
- name: Set shared_buffers for PostgreSQL
lineinfile:
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^shared_buffers ='
line: 'shared_buffers = 25536MB'
notify: restart postgresql
notify: Restart postgresql
- name: Set effective_cache_size for PostgreSQL
lineinfile:
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^effective_cache_size ='
line: 'effective_cache_size = 50608MB'
notify: restart postgresql
notify: Restart postgresql
- name: Set work_mem for PostgreSQL
lineinfile:
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^work_mem ='
line: 'work_mem = 6MB'
notify: restart postgresql
notify: Restart postgresql
- name: Set maintenance_work_mem for PostgreSQL
lineinfile:
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^maintenance_work_mem ='
line: 'maintenance_work_mem = 2GB'
notify: restart postgresql
notify: Restart postgresql
- name: Set checkpoint_completion_target for PostgreSQL
lineinfile:
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^checkpoint_completion_target ='
line: 'checkpoint_completion_target = 0.9'
notify: restart postgresql
notify: Restart postgresql
- name: Set wal_buffers for PostgreSQL
lineinfile:
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^wal_buffers ='
line: 'wal_buffers = -1'
notify: restart postgresql
notify: Restart postgresql
- name: Set default_statistics_target for PostgreSQL
lineinfile:
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^default_statistics_target ='
line: 'default_statistics_target = 100'
notify: restart postgresql
notify: Restart postgresql
- name: Drop faf database
postgresql_db:

View file

@ -1,5 +1,5 @@
---
- name: restart httpd
- name: Restart httpd
service:
name: httpd
state: restarted

View file

@ -29,11 +29,11 @@
src: etc-faf-plugins-web.conf.j2
dest: /etc/faf/plugins/web.conf
notify:
- restart httpd
- Restart httpd
- name: Put webfaf on root (/) if configured
ansible.builtin.template:
src: etc-httpd-conf.d-faf-web.conf.j2
dest: /etc/httpd/conf.d/faf-web.conf
notify:
- restart httpd
- Restart httpd

View file

@ -1,5 +1,5 @@
---
- name: restart httpd
- name: Restart httpd
service:
name: httpd
state: restarted

View file

@ -4,18 +4,18 @@
src: etc-retrace-server.conf.j2
dest: /etc/retrace-server/retrace-server.conf
mode: "0644"
notify: restart httpd
notify: Restart httpd
- name: Retrace-server http config
ansible.builtin.template:
src: retrace-server-httpd.conf.j2
dest: /etc/httpd/conf.d/retrace-server-httpd.conf
mode: "0644"
notify: restart httpd
notify: Restart httpd
- name: Configure retrace-server hooks config
ansible.builtin.template:
src: etc-retrace-server-hooks.conf.j2
dest: /etc/retrace-server/retrace-server-hooks.conf
mode: "0644"
notify: restart httpd
notify: Restart httpd

View file

@ -25,7 +25,7 @@
service: name=httpd enabled=yes
ignore_errors: true
notify:
- reload apache
- Reload apache
tags:
- service
- apache
@ -36,7 +36,7 @@
owner=root group=root mode=0755
when: ansible_distribution_major_version|int < 30 and ansible_distribution == 'Fedora'
notify:
- reload apache
- Reload apache
tags:
- config
- hotfix
@ -48,7 +48,7 @@
owner=root group=root mode=0755
when: ansible_distribution_major_version|int <= 8 and ansible_distribution == 'RedHat'
notify:
- reload apache
- Reload apache
tags:
- config
- hotfix
@ -57,7 +57,7 @@
- name: Add appserver headers.conf
ansible.builtin.template: src="{{ files }}/httpd/headers.conf.j2" dest=/etc/httpd/conf.d/headers.conf
notify:
- reload apache
- Reload apache
tags:
- config
- apache
@ -67,7 +67,7 @@
ansible.builtin.template: src="{{ files }}/httpd/h2.conf.j2" dest=/etc/httpd/conf.d/h2.conf
when: ansible_distribution == 'Fedora'
notify:
- reload apache
- Reload apache
tags:
- config
- apache
@ -76,7 +76,7 @@
- name: Add apache_status location for collectd
ansible.builtin.template: src="{{ files }}/httpd/apachestatus.conf" dest=/etc/httpd/conf.d/apachestatus.conf
notify:
- reload apache
- Reload apache
tags:
- config
- apache

View file

@ -9,7 +9,7 @@
src=apps.fp.o.conf dest=/etc/httpd/conf.d/{{website}}/apps.fp.o.conf
owner=root group=root mode=0644
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- apps-fp-o

View file

@ -246,7 +246,7 @@
- config
- base
notify:
- flush journald tmpfiles to persistent store
- Flush journald tmpfiles to persistent store
- name: Enable journald persistence
ansible.builtin.file: path=/var/log/journal state=directory
@ -257,7 +257,7 @@
- config
- base
notify:
- flush journald tmpfiles to persistent store
- Flush journald tmpfiles to persistent store
- name: Install rh ca for splunk
ansible.builtin.copy: src={{ private }}/files/splunk-certs/2022-IT-Root-CA.pem

View file

@ -10,7 +10,7 @@
- "postfix/main.cf/main.cf.{{ datacenter }}"
- "postfix/main.cf/main.cf"
notify:
- restart postfix
- Restart postfix
tags:
- postfix
- config
@ -26,7 +26,7 @@
- "postfix/master.cf/master.cf"
when: inventory_hostname.startswith(('smtp-mm', 'mailman', 'noc02', 'bastion', 'smtp-auth'))
notify:
- restart postfix
- Restart postfix
tags:
- postfix
- config
@ -36,7 +36,7 @@
ansible.builtin.copy: src="{{private}}/files/smtpd/sender_access.{{postfix_group}}" dest="/etc/postfix/sender_access"
when: postfix_group == "smtp-mm" or postfix_group == "mailman" or postfix_group == "gateway"
notify:
- restart postfix
- Restart postfix
tags:
- postfix
- config
@ -49,7 +49,7 @@
option: PrivateDevices
value: false
notify:
- reload systemd
- Reload systemd
when: inventory_hostname.startswith(('buildvm-s390x'))
tags:
- postfix
@ -66,8 +66,8 @@
ansible.builtin.copy: src="postfix/{{ postfix_transport_filename }}" dest=/etc/postfix/transport
when: inventory_hostname.startswith(('smtp-mm','bastion','noc02')) and env != 'staging'
notify:
- rebuild postfix transport
- restart postfix
- Rebuild postfix transport
- Restart postfix
tags:
- postfix
- base
@ -77,8 +77,8 @@
ansible.builtin.copy: src="postfix/bysender" dest=/etc/postfix/bysender
when: inventory_hostname.startswith(('bastion')) and env != 'staging'
notify:
- rebuild postfix bysender
- restart postfix
- Rebuild postfix bysender
- Restart postfix
tags:
- postfix
- base
@ -88,8 +88,8 @@
ansible.builtin.copy: src="postfix/tls_policy" dest=/etc/postfix/tls_policy
when: inventory_hostname.startswith(('bastion','smtp-mm','pagure')) and env != 'staging'
notify:
- rebuild postfix tls_policy
- restart postfix
- Rebuild postfix tls_policy
- Restart postfix
tags:
- postfix
@ -105,6 +105,6 @@
mode=0600
when: inventory_hostname.startswith(('bastion','smtp-mm')) and env != 'staging'
notify:
- restart postfix
- Restart postfix
tags:
- postfix

View file

@ -74,7 +74,7 @@
- name: Sshd_config
ansible.builtin.template: src=sshd_config dest=/etc/ssh/sshd_config mode=0600
notify:
- restart sshd
- Restart sshd
tags:
- basessh
- sshd_config
@ -217,7 +217,7 @@
with_items: "{{certs_to_sign}}"
register: certcopy
notify:
- restart sshd
- Restart sshd
tags:
- basessh
- sshd_cert

View file

@ -342,7 +342,7 @@
- name: Install web server config for batcave (mimetypes)
ansible.builtin.copy: src=mime-types.conf dest=/etc/httpd/conf.d/mime-types.conf mode=0644
notify:
- reload httpd
- Reload httpd
tags:
- batcave
- config
@ -351,7 +351,7 @@
- name: Install web server config for batcave (access rules)
ansible.builtin.copy: src=allows dest=/etc/httpd/conf.d/allows mode=0644
notify:
- reload httpd
- Reload httpd
tags:
- batcave
- config
@ -360,7 +360,7 @@
- name: Install web server config for batcave (main config)
ansible.builtin.template: src=infrastructure.fedoraproject.org.conf.j2 dest=/etc/httpd/conf.d/infrastructure.fedoraproject.org.conf mode=0644
notify:
- reload httpd
- Reload httpd
tags:
- batcave
- config

View file

@ -14,7 +14,7 @@
- name: Setup blockerbugs apache conf
ansible.builtin.copy: src=blockerbugs.conf dest=/etc/httpd/conf.d/blockerbugs.conf mode=644
notify:
- reload httpd
- Reload httpd
tags:
- config
- httpd
@ -41,7 +41,7 @@
- name: Setup blockerbugs app settings file
ansible.builtin.template: src=blockerbugs-settings.py.j2 dest=/etc/blockerbugs/settings.py mode=640
notify:
- reload httpd
- Reload httpd
tags:
- config
- httpd
@ -53,7 +53,7 @@
- blockerbugs
- apache
notify:
- reload httpd
- Reload httpd
tags:
- config
- httpd

View file

@ -153,8 +153,8 @@
dest: /etc/fedora-messaging/koji_sync_listener.toml
when: env == "production"
notify:
- reload systemd
- restart fm-consumer@koji_sync_listener
- Reload systemd
- Restart fm-consumer@koji_sync_listener
tags:
- bodhi
- koji-sync
@ -405,7 +405,7 @@
group: root
mode: "0644"
notify:
- reload systemd
- Reload systemd
tags:
- bodhi
- config
@ -418,7 +418,7 @@
group: root
mode: "0644"
notify:
- reload systemd
- Reload systemd
tags:
- bodhi
- config

View file

@ -23,7 +23,7 @@
group: root
mode: "0644"
notify:
- reload systemd
- Reload systemd
- Restart btrfs-balance

View file

@ -15,7 +15,7 @@
src=moksha-hub.service
dest=/usr/lib/systemd/system/moksha-hub.service
notify:
- restart moksha-hub
- Restart moksha-hub
tags:
- bugzilla2fedmsg
@ -40,7 +40,7 @@
group=fedmsg
mode=0640
notify:
- restart moksha-hub
- Restart moksha-hub
tags:
- bugzilla2fedmsg
@ -53,7 +53,7 @@
- msg-client-fedora-prod.crt
- msg-client-fedora-prod.key
notify:
- restart moksha-hub
- Restart moksha-hub
tags:
- bugzilla2fedmsg

View file

@ -3,4 +3,4 @@
- name: Conditionally restart check-compose consumer service
ansible.builtin.command: /usr/local/bin/conditional-restart.sh fm-consumer@check-compose
listen:
- restart check-compose
- Restart check-compose

View file

@ -134,7 +134,7 @@
ansible.builtin.command: "python3 -m pip install --no-deps /root/check-compose"
when: "gitcc is changed or instcc.rc != 0"
notify:
- restart check-compose
- Restart check-compose
- name: Create /etc/pki/fedora-messaging
ansible.builtin.file:
@ -179,7 +179,7 @@
- name: Configure fedora-messaging check-compose consumer
ansible.builtin.template: src=check-compose.toml.j2 dest=/etc/fedora-messaging/check-compose.toml owner=root group=root mode=0640
notify:
- restart check-compose
- Restart check-compose
tags:
- config

View file

@ -9,7 +9,7 @@
- name: Install chrony.conf
ansible.builtin.template: src=chrony.conf.j2 dest=/etc/chrony.conf
notify:
- restart chronyd
- Restart chronyd
tags:
- chrony
- config

View file

@ -42,7 +42,7 @@
tags:
- collectd
notify:
- restart collectd
- Restart collectd
# install collectd-network config
- name: /etc/collectd.d/network.conf
@ -50,7 +50,7 @@
tags:
- collectd
notify:
- restart collectd
- Restart collectd
when: not inventory_hostname.startswith('log')
# install collectd-network config
@ -59,7 +59,7 @@
tags:
- collectd
notify:
- restart collectd
- Restart collectd
when: inventory_hostname.startswith('log')
# apache - localhost only - pretty much any apache server
@ -68,7 +68,7 @@
tags:
- collectd
notify:
- restart collectd
- Restart collectd
when: collectd_apache and ansible_distribution_major_version|int <= 7 and ansible_distribution == 'RedHat'
- name: Install collectd-apache (dnf)
@ -76,7 +76,7 @@
tags:
- collectd
notify:
- restart collectd
- Restart collectd
when: collectd_apache and ansible_distribution_major_version|int > 7 and ansible_distribution == 'RedHat'
- name: Install collectd-apache (dnf)
@ -84,7 +84,7 @@
tags:
- collectd
notify:
- restart collectd
- Restart collectd
when: collectd_apache and ansible_distribution_major_version|int >= 29 and ansible_distribution == 'Fedora'
- name: /etc/collectd/apache.conf
@ -92,7 +92,7 @@
tags:
- collectd
notify:
- restart collectd
- Restart collectd
when: collectd_apache
- name: Install libsemanage-python so we can set an sebool below
@ -107,7 +107,7 @@
- collectd
ignore_errors: true
notify:
- restart collectd
- Restart collectd
when: ( collectd_apache is defined ) and ansible_selinux.status != "disabled"
- name: Enable collectd nfs module
@ -115,7 +115,7 @@
tags:
- collectd
notify:
- restart collectd
- Restart collectd
# Three tasks for handling our (two) custom selinux modules.
- name: Ensure a directory exists for our custom selinux module

View file

@ -12,4 +12,4 @@
dest=/etc/collectd.d/bind.conf
tags:
- collectd
notify: restart collectd
notify: Restart collectd

View file

@ -12,7 +12,7 @@
mode=0755
tags:
- collectd
notify: restart collectd
notify: Restart collectd
- name: Copy in /etc/collectd.d/fcomm-queue.conf
ansible.builtin.copy: >
@ -20,7 +20,7 @@
dest=/etc/collectd.d/fcomm-queue-conf
tags:
- collectd
notify: restart collectd
notify: Restart collectd
# Three tasks for handling our custom selinux module.
- name: Ensure a directory exists for our custom selinux module

View file

@ -3,13 +3,13 @@
ansible.builtin.copy: src=fedmsg-map.py dest=/usr/local/bin/fedmsg-map mode=0755
tags:
- collectd
notify: restart collectd
notify: Restart collectd
- name: Copy in /etc/collectd.d/fedmsg-activation/conf
ansible.builtin.copy: src=fedmsg-activation.conf dest=/etc/collectd.d/fedmsg-activation.conf
tags:
- collectd
notify: restart collectd
notify: Restart collectd
- seboolean: name=collectd_tcp_network_connect persistent=yes state=yes
tags:

View file

@ -8,7 +8,7 @@
tags:
- collectd
- collectd/fedmsg
notify: restart collectd
notify: Restart collectd
- name: Copy in /etc/collectd.d/fedmsg-service.conf
ansible.builtin.template: >
@ -17,4 +17,4 @@
tags:
- collectd
- collectd/fedmsg
notify: restart collectd
notify: Restart collectd

View file

@ -6,7 +6,7 @@
- collectd/memcached
- collectd
- memcached
notify: restart collectd
notify: Restart collectd
- name: Lastly, set some selinux booleans
seboolean: name=collectd_tcp_network_connect persistent=yes state=yes

View file

@ -7,7 +7,7 @@
mode=0755
tags:
- collectd
notify: restart collectd
notify: Restart collectd
- name: Copy in /etc/collectd.d/postgres.conf
ansible.builtin.template: >
@ -15,4 +15,4 @@
dest=/etc/collectd.d/postgres.conf
tags:
- collectd
notify: restart collectd
notify: Restart collectd

View file

@ -25,7 +25,7 @@
tags:
- collectd
- config
notify: restart collectd
notify: Restart collectd
- name: Let collectd talk to the RabbitMQ management interface
seboolean: name=collectd_tcp_network_connect state=yes persistent=yes

View file

@ -9,7 +9,7 @@
- collectd-web
- collectd-rabbitmq-data
notify:
- restart collectd
- Restart collectd
tags:
- config
- collectd/server
@ -23,7 +23,7 @@
- collectd-rabbitmq-data
- collectd-ipa-data
notify:
- restart collectd
- Restart collectd
tags:
- config
- collectd/server
@ -37,7 +37,7 @@
loop:
- fmn-types.db
notify:
- restart collectd
- Restart collectd
tags:
- config
- collectd/server
@ -52,7 +52,7 @@
- fmn.conf
- unixsock.conf
notify:
- restart collectd
- Restart collectd
tags:
- config
- collectd/server
@ -100,7 +100,7 @@
src: service.timeout.conf
dest: /etc/systemd/system/collectd.service.d/timeout.conf
notify:
- reload systemd
- Reload systemd
tags:
- config
- collectd/server

View file

@ -7,7 +7,7 @@
mode=0755
tags:
- collectd
notify: restart collectd
notify: Restart collectd
- name: Copy in /etc/collectd.d/web-service.conf
ansible.builtin.template: >
@ -15,7 +15,7 @@
dest=/etc/collectd.d/{{ site }}.conf
tags:
- collectd
notify: restart collectd
notify: Restart collectd
- name: Let collectd talk to apache over tcp
seboolean: name=collectd_tcp_network_connect state=yes persistent=yes

View file

@ -1,16 +1,16 @@
---
- name: chmod_key
- name: Chmod_key
ansible.builtin.file: path=/etc/lighttpd/copr-be.fedoraproject.org.pem owner=root group=root mode=0600
- name: restart copr-backend
- name: Restart copr-backend
service: name="{{ copr_backend_target }}" state=restarted
when: not services_disabled
- name: systemctl daemon-reload
- name: Systemctl daemon-reload
ansible.builtin.command: /usr/bin/systemctl daemon-reload
- name: restart lighttpd
- name: Restart lighttpd
action: service name=lighttpd state=restarted
- name: restart node_exporter
- name: Restart node_exporter
action: service name=node_exporter state=restarted

View file

@ -96,7 +96,7 @@
- name: Install lighttpd.conf
ansible.builtin.template: src="lighttpd/lighttpd.conf" dest=/etc/lighttpd/lighttpd.conf owner=root group=root mode=0644
notify:
- restart lighttpd
- Restart lighttpd
tags:
- config
- lighttpd_config
@ -110,7 +110,7 @@
- content-encoding-gzip-if-exists.lua
- pulp-redirect.lua
notify:
- restart lighttpd
- Restart lighttpd
tags:
- config
@ -133,7 +133,7 @@
- dirlisting.conf
- mime.conf
notify:
- restart lighttpd
- Restart lighttpd
tags:
- config
@ -247,7 +247,7 @@
- name: Copy copr-be.conf
ansible.builtin.template: src="copr-be.conf.j2" dest=/etc/copr/copr-be.conf owner=root group=copr mode=640
notify:
- restart copr-backend
- Restart copr-backend
tags:
- config
- copr_infrastructure_password
@ -265,7 +265,7 @@
owner=copr group=copr mode=0600
when: copr_messaging
notify:
- restart copr-backend
- Restart copr-backend
tags:
- config
@ -406,6 +406,6 @@
regexp: '^ARGS='
line: 'ARGS=--collector.systemd'
backrefs: yes
notify: restart node_exporter
notify: Restart node_exporter
tags:
- prometheus_node_exporter

View file

@ -67,7 +67,7 @@
[Install]
WantedBy=timers.target
notify: systemctl daemon-reload
notify: Systemctl daemon-reload
- name: Prepare mount point
ansible.builtin.file: state=directory path=/var/lib/copr/public_html

View file

@ -10,7 +10,7 @@
value: ifcfg-rh
backup: yes
notify:
- restart NetworkManager
- Restart NetworkManager
- name: Set up gateway
lineinfile: dest=/etc/sysconfig/network line="GATEWAYDEV=eth0"

View file

@ -1,5 +1,5 @@
---
- import_tasks: "{{ handlers_path }}/restart_services.yml"
- name: restart postgresql
- name: Restart postgresql
service: name=postgresql state=restarted

View file

@ -40,7 +40,7 @@
- name: Configure crond
ansible.builtin.copy: src=sysconfig.crond dest=/etc/sysconfig/crond
notify: restart crond
notify: Restart crond
- name: Install base copr packages
ansible.builtin.package:
@ -66,7 +66,7 @@
state=present
line='MAILTO=copr-team@redhat.com'
regexp="^MAILTO"
notify: restart crond
notify: Restart crond
- name: Override the default rsyslog logrotate file
ansible.builtin.copy: src=syslog-logrotate dest=/etc/logrotate.d/rsyslog

View file

@ -2,4 +2,4 @@
case $1 in --init) exit 0 ;; esac
systemctl restart httpd
systemctl Restart httpd

View file

@ -23,4 +23,4 @@ for domain in $RENEWED_DOMAINS; do
pem_fixup "$domain"
done
systemctl restart lighttpd
systemctl Restart lighttpd

View file

@ -1,6 +1,6 @@
---
- name: reload httpd
- name: Reload httpd
service: name="httpd" state="restarted"
- name: restart copr-dist-git
- name: Restart copr-dist-git
service: name="copr-dist-git" state="restarted"

View file

@ -46,7 +46,7 @@
- config
- copr_infrastructure_password
notify:
- restart copr-dist-git
- Restart copr-dist-git
- name: Set git variables for copr-dist-git user
ansible.builtin.copy: src=".gitconfig" dest="/home/copr-dist-git/.gitconfig"
@ -61,7 +61,7 @@
tags:
- config
notify:
- reload httpd
- Reload httpd
- name: Letsencrypt for copr-dist-git
include_role: name=copr/certbot
@ -76,12 +76,12 @@
tags:
- config
notify:
- reload httpd
- Reload httpd
- name: Install /etc/httpd/conf.d/ssl.conf
ansible.builtin.template: src="ssl.conf.j2" dest="/etc/httpd/conf.d/ssl.conf" owner=root group=root mode=0644
notify:
- reload httpd
- Reload httpd
- name: Temporary logrotation fix until copr-dist-git 0.26 is released & deployed
ansible.builtin.copy: src="logrotate.d/copr-dist-git" dest="/etc/logrotate.d/copr-dist-git"

View file

@ -1,14 +1,14 @@
---
- import_tasks: "{{ handlers_path }}/restart_services.yml"
- name: restart postgresql
- name: Restart postgresql
service: name=postgresql
state=restarted
- name: restart copr-fe-fedora-messaging-reader
- name: Restart copr-fe-fedora-messaging-reader
service: name="fm-consumer@copr_messaging"
state=restarted
when: not services_disabled|bool
- name: restart node_exporter
- name: Restart node_exporter
action: service name=node_exporter state=restarted

View file

@ -5,7 +5,7 @@
with_items:
- "coprs.conf"
notify:
- reload httpd
- Reload httpd
tags:
- config
- certbot
@ -13,7 +13,7 @@
- name: Drop old and now unused coprs_ssl.conf
ansible.builtin.file: path=/etc/httpd/conf.d/coprs_ssl.conf state=absent
notify:
- reload httpd
- Reload httpd
tags:
- config

View file

@ -86,8 +86,8 @@
- name: Install copr configs
ansible.builtin.template: src="copr.conf" dest=/etc/copr/copr.conf mode=600
notify:
- reload httpd
- restart copr-fe-fedora-messaging-reader
- Reload httpd
- Restart copr-fe-fedora-messaging-reader
tags:
- config
- copr_infrastructure_password
@ -181,7 +181,7 @@
- name: Install fedora messaging config for Copr
ansible.builtin.template: src="fedora-messaging/copr_messaging.toml" dest="/etc/fedora-messaging/copr_messaging.toml"
notify:
- restart copr-fe-fedora-messaging-reader
- Restart copr-fe-fedora-messaging-reader
tags:
- config
@ -191,7 +191,7 @@
- name: Install custom systemd service files
ansible.builtin.copy: src=systemd dest=/etc
notify:
- reload httpd
- Reload httpd
- name: Compress rotated httpd logs
ansible.builtin.copy: src="httpd.logrotate" dest="/etc/logrotate.d/httpd"
@ -219,7 +219,7 @@
regexp: '^ARGS='
line: 'ARGS=--collector.textfile.directory="/var/lib/prometheus/node-exporter" --collector.systemd'
backrefs: yes
notify: restart node_exporter
notify: Restart node_exporter
- name: Install nrpe
dnf: name=nrpe state=present
@ -237,4 +237,4 @@
- name: Install gai.conf
ansible.builtin.copy: src=gai.conf dest=/etc
notify:
- reload httpd
- Reload httpd

View file

@ -17,7 +17,7 @@
- name: Copy pg_hba.conf
ansible.builtin.copy: src="pg/pg_hba.conf" dest=/var/lib/pgsql/data/pg_hba.conf owner=postgres group=postgres mode=0600
notify:
- restart postgresql
- Restart postgresql
tags:
- config
@ -61,7 +61,7 @@
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^shared_buffers ='
line: 'shared_buffers = 8096MB'
notify: restart postgresql
notify: Restart postgresql
tags:
- config
@ -70,7 +70,7 @@
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^effective_cache_size ='
line: 'effective_cache_size = 2048MB'
notify: restart postgresql
notify: Restart postgresql
tags:
- config
@ -79,7 +79,7 @@
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^work_mem ='
line: 'work_mem = 4MB'
notify: restart postgresql
notify: Restart postgresql
tags:
- config
@ -88,7 +88,7 @@
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^maintenance_work_mem ='
line: 'maintenance_work_mem = 500MB'
notify: restart postgresql
notify: Restart postgresql
tags:
- config
@ -97,7 +97,7 @@
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^checkpoint_completion_target ='
line: 'checkpoint_completion_target = 0.9'
notify: restart postgresql
notify: Restart postgresql
tags:
- config
@ -106,7 +106,7 @@
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^log_min_duration_statement ='
line: 'log_min_duration_statement = 500'
notify: restart postgresql
notify: Restart postgresql
tags:
- config
@ -115,7 +115,7 @@
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^max_connections ='
line: 'max_connections = 200'
notify: restart postgresql
notify: Restart postgresql
tags:
- config

View file

@ -48,7 +48,7 @@
- name: Install libvirtd.conf
ansible.builtin.copy: src="{{ files }}/virthost/libvirtd.conf" dest=/etc/libvirt/libvirtd.conf
notify:
- restart libvirtd
- Restart libvirtd
tags:
- libvirtd
- config
@ -99,7 +99,7 @@
virsh net-start host-bridge
virsh net-autostart host-bridge
when: libvirt_bridge_exists.changed
notify: restart libvirtd
notify: Restart libvirtd
tags: libvirtd
- name: Check if image pool exists
@ -121,7 +121,7 @@
virsh pool-start "{{ image_pool_name }}"
virsh pool-autostart "{{ image_pool_name }}"
when: libvirt_pool_exists.changed
notify: restart libvirtd
notify: Restart libvirtd
tags: libvirtd
- name: Allow copr user controlling libvirt
@ -132,8 +132,8 @@
value: libvirt
backup: yes
notify:
- reload systemd
- restart libvirtd.socket
- Reload systemd
- Restart libvirtd.socket
tags: libvirtd
- name: Create the copr user

View file

@ -9,7 +9,7 @@
- name: Install copr-keygen
dnf: state=present name=copr-keygen
notify:
- restart haveged
- Restart haveged
- name: Change owner of data to copr-signer
ansible.builtin.file: path=/var/lib/copr-keygen owner=copr-signer group=copr-signer recurse=yes
@ -17,14 +17,14 @@
- name: Put keygen vhost for httpd
ansible.builtin.copy: src="httpd/copr-keygen.conf" dest="/etc/httpd/conf.d/copr-keygen.conf"
notify:
- reload httpd
- Reload httpd
tags:
- config
- name: Put config for signd
ansible.builtin.template: src="sign.conf" dest="/etc/sign.conf"
notify:
- restart obs-signd
- Restart obs-signd
tags:
- config

View file

@ -11,6 +11,6 @@
with_items:
- developer.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- developer

View file

@ -9,7 +9,7 @@
- name: Setup dhcpd.conf
ansible.builtin.copy: src=dhcpd.conf.{{ inventory_hostname }} dest=/etc/dhcp/dhcpd.conf mode=644
notify:
- restart dhcpd
- Restart dhcpd
tags:
- sshd_config
- config

View file

@ -1,3 +1,3 @@
---
- name: restart pagure_milter
- name: Restart pagure_milter
service: name=pagure_milter state=restarted

View file

@ -42,8 +42,8 @@
# dest=/usr/lib/systemd/system/stunnel.service
# owner=root group=root mode=0755
# notify:
# - reload systemd
# - restart stunnel
# - Reload systemd
# - Restart stunnel
# tags:
# - pagure
# - stunnel
@ -61,7 +61,7 @@
# owner=root group=root mode=0600
# with_items:
# - { file: stunnel-conf.j2, dest: /etc/stunnel/stunnel.conf }
# notify: restart stunnel
# notify: Restart stunnel
# tags:
# - pagure
# - stunnel
@ -137,7 +137,7 @@
- web
- pagure
notify:
- restart apache
- Restart apache
- name: Pagure configuration for the hooks
ansible.builtin.template: src={{ item.file }}
@ -151,7 +151,7 @@
- web
- pagure
notify:
- restart apache
- Restart apache
- name: Create the database scheme
ansible.builtin.command: /usr/bin/python3 /usr/share/pagure/pagure_createdb.py
@ -204,7 +204,7 @@
- config
- pagure
notify:
- restart apache
- Restart apache
- name: Install the wsgi file
ansible.builtin.template: src={{ item }}
@ -217,7 +217,7 @@
- web
- pagure
notify:
- restart apache
- Restart apache
- name: Add default facl so apache can read git repos
acl: default=yes etype=user entity=apache permissions="rx" name=/srv/git state=present
@ -247,7 +247,7 @@
- pagure_webhook
- pagure_worker
notify:
- reload systemd
- Reload systemd
tags:
- pagure
@ -268,7 +268,7 @@
- config
- pagure
notify:
- restart apache
- Restart apache
- name: Create the /srv/cache/extras folder for the crons
ansible.builtin.file: state=directory

View file

@ -30,14 +30,14 @@
- name: Install the mod_auth_openidc configuration
ansible.builtin.template: src=auth_openidc.conf dest=/etc/httpd/conf.d/auth_openidc.conf
notify:
- reload httpd
- Reload httpd
tags:
- distgit
- name: Install the http push configuration
ansible.builtin.template: src=httppush.conf dest=/etc/httpd/conf.d/httpush.conf
notify:
- reload httpd
- Reload httpd
tags:
- distgit
@ -67,7 +67,7 @@
- name: Install the mod_ssl configuration
ansible.builtin.copy: src=ssl.conf dest=/etc/httpd/conf.d/ssl.conf
notify:
- reload httpd
- Reload httpd
tags:
- distgit
@ -87,7 +87,7 @@
group=apache
mode=0600
notify:
- reload httpd
- Reload httpd
tags:
- distgit
@ -198,14 +198,14 @@
- name: Install the DistGit related httpd config
ansible.builtin.copy: src=git-smart-http.conf dest=/etc/httpd/conf.d/dist-git/git-smart-http.conf
notify:
- reload httpd
- Reload httpd
tags:
- distgit
- name: Symlink pkgs-git-repos-list
ansible.builtin.copy: src=repolist.conf dest=/etc/httpd/conf.d/dist-git/repolist.conf
notify:
- reload httpd
- Reload httpd
tags:
- distgit
@ -241,7 +241,7 @@
- lookaside.conf
- lookaside-upload.conf
notify:
- reload httpd
- Reload httpd
tags:
- distgit
- sslciphers

View file

@ -12,7 +12,7 @@
- name: Copy rndc config
ansible.builtin.copy: src=rndc.conf dest=/etc/rndc.conf
notify:
- restart named
- Restart named
tags:
- config
- dns
@ -20,7 +20,7 @@
- name: Copy rndc key
ansible.builtin.copy: src={{ private }}/files/dns/rndc.key dest=/etc/rndc.key
notify:
- restart named
- Restart named
tags:
- config
- dns
@ -28,7 +28,7 @@
- name: Copy named cache
ansible.builtin.copy: src=named.ca dest=/var/named/named.ca
notify:
- restart named
- Restart named
tags:
- config
- dns
@ -36,7 +36,7 @@
- name: Copy geoip.py
ansible.builtin.copy: src=geoip.py dest=/usr/local/bin/geoip.py mode=0755
notify:
- restart named
- Restart named
tags:
- config
- dns
@ -44,7 +44,7 @@
- name: Copy GeoIP.sh
ansible.builtin.copy: src=GeoIP.sh dest=/var/named/GeoIP.sh mode=0755
notify:
- restart named
- Restart named
tags:
- config
- dns
@ -53,14 +53,14 @@
# ansible.builtin.command: /var/named/GeoIP.sh
# changed_when: "1 != 1"
# notify:
# - restart named
# - Restart named
# tags:
# - dns
- name: Copy update-dns
ansible.builtin.copy: src=update-dns dest=/usr/local/bin/update-dns mode=0755
notify:
- restart named
- Restart named
tags:
- config
- dns
@ -68,7 +68,7 @@
- name: Copy zones
ansible.builtin.copy: src=zones.conf dest=/etc/named/zones.conf owner=root group=root mode=0644
notify:
- restart named
- Restart named
tags:
- config
- dns
@ -76,7 +76,7 @@
- name: Copy named config
ansible.builtin.copy: src=named.conf dest=/etc/named.conf mode=0644 owner=root group=root
notify:
- restart named
- Restart named
tags:
- config
- dns
@ -85,7 +85,7 @@
ansible.builtin.command: /usr/local/bin/update-dns
changed_when: "1 != 1"
notify:
- restart named
- Restart named
tags:
- config
- dns
@ -114,7 +114,7 @@
ansible.builtin.command: semanage port -a -t dns_port_t -p tcp 8053
when: semanageoutput.stdout.find("8053") == -1
notify:
- restart named
- Restart named
tags:
- dns

View file

@ -15,7 +15,7 @@
ansible.builtin.template:
src: config.yml.j2
dest: "{{ conf_path }}"
notify: restart docker-distribution
notify: Restart docker-distribution
tags:
- docker-distribution

View file

@ -71,7 +71,7 @@
- config
- sslciphers
notify:
- reload httpd
- Reload httpd
- name: Make sure apache autoindex.conf is replaced with ours
ansible.builtin.copy: src=httpd/dl.fedoraproject.org/autoindex.conf dest=/etc/httpd/conf.d/autoindex.conf
@ -79,7 +79,7 @@
- httpd
- config
notify:
- reload httpd
- Reload httpd
- name: Configure httpd dl sub conf
ansible.builtin.copy: src=httpd/dl.fedoraproject.org/ dest=/etc/httpd/conf.d/dl.fedoraproject.org/
@ -87,7 +87,7 @@
- httpd
- config
notify:
- reload httpd
- Reload httpd
- name: Install haveged for entropy
ansible.builtin.package: name=haveged state=present

View file

@ -11,7 +11,7 @@
dest=/etc/httpd/conf.d/{{website}}/gather-easyfix.conf
owner=root group=root mode=0644
notify:
- reload httpd
- Reload httpd
tags:
- easyfix
- easyfix/proxy

View file

@ -93,11 +93,11 @@
- fedmsgdconfig
- fedmsg/base
notify:
- reload httpd
- restart fedmsg-gateway
- restart fedmsg-hub
- restart fedmsg-irc
- restart fedmsg-relay
- Reload httpd
- Restart fedmsg-gateway
- Restart fedmsg-hub
- Restart fedmsg-irc
- Restart fedmsg-relay
- name: Dynamically generate policy from group/host vars.
ansible.builtin.template: >
@ -115,11 +115,11 @@
- fedmsgdpolicy
- fedmsg/base
notify:
- reload httpd
- restart fedmsg-gateway
- restart fedmsg-hub
- restart fedmsg-irc
- restart fedmsg-relay
- Reload httpd
- Restart fedmsg-gateway
- Restart fedmsg-hub
- Restart fedmsg-irc
- Restart fedmsg-relay
- name: Setup basic /etc/fedmsg.d/ contents for firewalled/external hosts
ansible.builtin.template: >
@ -139,11 +139,11 @@
- fedmsgdconfig
- fedmsg/base
notify:
- reload httpd
- restart fedmsg-gateway
- restart fedmsg-hub
- restart fedmsg-irc
- restart fedmsg-relay
- Reload httpd
- Restart fedmsg-gateway
- Restart fedmsg-hub
- Restart fedmsg-irc
- Restart fedmsg-relay
- name: Install fedmsg-relay in case we're in debug mode.
ansible.builtin.package: name=fedmsg-relay state=present
@ -152,11 +152,11 @@
- fedmsg_loopback
- fedmsg/base
notify:
- reload httpd
- restart fedmsg-gateway
- restart fedmsg-hub
- restart fedmsg-irc
- restart fedmsg-relay
- Reload httpd
- Restart fedmsg-gateway
- Restart fedmsg-hub
- Restart fedmsg-irc
- Restart fedmsg-relay
- name: Install fedmsg-relay in case we're in debug mode.
dnf: name=fedmsg-relay state=present
@ -165,11 +165,11 @@
- fedmsg_loopback
- fedmsg/base
notify:
- reload httpd
- restart fedmsg-gateway
- restart fedmsg-hub
- restart fedmsg-irc
- restart fedmsg-relay
- Reload httpd
- Restart fedmsg-gateway
- Restart fedmsg-hub
- Restart fedmsg-irc
- Restart fedmsg-relay
- name: Destroy standard config to make way for debug loopback.
ansible.builtin.file: dest=/etc/fedmsg.d/{{item}} state=absent
@ -181,11 +181,11 @@
- fedmsg_loopback
- fedmsg/base
notify:
- reload httpd
- restart fedmsg-gateway
- restart fedmsg-hub
- restart fedmsg-irc
- restart fedmsg-relay
- Reload httpd
- Restart fedmsg-gateway
- Restart fedmsg-hub
- Restart fedmsg-irc
- Restart fedmsg-relay
- name: Overwrite standard config with local fedmsg debugging loopback
ansible.builtin.copy: src=relay-debug-loopback.py dest=/etc/fedmsg.d/relay.py
@ -194,11 +194,11 @@
- fedmsg_loopback
- fedmsg/base
notify:
- reload httpd
- restart fedmsg-gateway
- restart fedmsg-hub
- restart fedmsg-irc
- restart fedmsg-relay
- Reload httpd
- Restart fedmsg-gateway
- Restart fedmsg-hub
- Restart fedmsg-irc
- Restart fedmsg-relay
- name: Start fedmsg-relay, only for loopback testing
service: name=fedmsg-relay state=started

View file

@ -38,7 +38,7 @@
dest=/etc/httpd/conf.d/{{website}}/fedmsg.conf
owner=root group=root mode=0644
notify:
- reload httpd
- Reload httpd
tags:
- fedmsg
- fedmsg/crl

View file

@ -73,8 +73,8 @@
dest=/usr/lib/systemd/system/stunnel.service
owner=root group=root mode=0644
notify:
- reload systemd
- restart stunnel
- Reload systemd
- Restart stunnel
tags:
- fedmsg/gateway
- fedmsg/gateway/slave
@ -91,7 +91,7 @@
owner=root group=root mode=0600
with_items:
- { file: stunnel-conf.j2, dest: /etc/stunnel/stunnel.conf }
notify: restart stunnel
notify: Restart stunnel
tags:
- fedmsg/gateway
- fedmsg/gateway/slave
@ -101,7 +101,7 @@
src={{private}}/files/httpd/wildcard-2024.fedoraproject.org.combined.cert
dest=/etc/pki/tls/certs/wildcard-2024.fedoraproject.org.combined.cert
owner=root group=root mode=0644
notify: restart stunnel
notify: Restart stunnel
tags:
- fedmsg/gateway
- fedmsg/gateway/slave

View file

@ -22,7 +22,7 @@
- config
- fedmsg/gateway
notify:
- restart fedmsg-gateway
- Restart fedmsg-gateway
- name: Create systemd drop-in directory
ansible.builtin.file: >
@ -39,7 +39,7 @@
- config
- fedmsg/gateway
notify:
- restart fedmsg-gateway
- Restart fedmsg-gateway
- name: Enable on boot and start fedmsg-gateway
service:

View file

@ -32,12 +32,12 @@
- name: Enable the websocket server if we should
ansible.builtin.copy: src=websockets.py dest=/etc/fedmsg.d/websockets.py
when: enable_websocket_server
notify: restart fedmsg-hub
notify: Restart fedmsg-hub
- name: Disable the websocket server if we should..
ansible.builtin.file: dest=/etc/fedmsg.d/websockets.py state=absent
when: not enable_websocket_server
notify: restart fedmsg-hub
notify: Restart fedmsg-hub
- name: Set fedmsg ownership on /var/run/fedmsg
ansible.builtin.file: >
@ -68,7 +68,7 @@
- fedmsg-hub
- fedmsg-hub-3
notify:
- reload systemd
- Reload systemd
tags:
- fedmsg/hub
@ -80,7 +80,7 @@
- fedmsg-hub
- fedmsg-hub-3
notify:
- reload systemd
- restart fedmsg-hub
- Reload systemd
- Restart fedmsg-hub
tags:
- fedmsg/hub

View file

@ -27,7 +27,7 @@
- config
- fedmsg/irc
notify:
- restart fedmsg-irc
- Restart fedmsg-irc
- name: Setup fas credentials config file
ansible.builtin.template: >
@ -40,7 +40,7 @@
- config
- fedmsg/irc
notify:
- restart fedmsg-irc
- Restart fedmsg-irc
- name: Enable on boot and start fedmsg-irc
service: name=fedmsg-irc state=started enabled=true

View file

@ -33,7 +33,7 @@
- services
- fedmsg/relay
notify:
- restart fedmsg-relay
- Restart fedmsg-relay
when: env != "staging"
- name: Enable on boot and start fedmsg-relay
@ -42,5 +42,5 @@
- services
- fedmsg/relay
notify:
- restart fedmsg-relay
- Restart fedmsg-relay
when: env == "staging"

View file

@ -21,7 +21,7 @@
- budget.conf
- languages.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/budget

View file

@ -38,7 +38,7 @@
- fedora-docs.conf
- fedora-docs-old.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-docs
- fedora-docs/proxy
@ -51,7 +51,7 @@
- fedora-docs.conf
- fedora-docs-old.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-docs
- fedora-docs/proxy

View file

@ -13,7 +13,7 @@
- alt.conf
- languages.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/alt

View file

@ -3,7 +3,7 @@
ansible.builtin.copy: src="{{private}}/files/docker-registry/{{env}}/candidate-htpasswd" dest=/etc/httpd/conf.d/candidate-registry.fedoraproject.org/passwd
owner=root group=root mode=0644
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/candidate-registry

View file

@ -12,7 +12,7 @@
with_items:
- codecs.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/codecs

View file

@ -13,7 +13,7 @@
- fedoracommunity.org-web.conf
- languages.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/community

View file

@ -18,7 +18,7 @@
with_items:
- matrix.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/fedora.im

View file

@ -13,7 +13,7 @@
- flocktofedora.org.conf
- languages.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/flocktofedora

View file

@ -14,7 +14,7 @@
- languages.conf
- csp.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/getfedora

View file

@ -13,7 +13,7 @@
- iot.conf
- languages.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/iot

View file

@ -13,7 +13,7 @@
- labs.conf
- languages.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/labs

View file

@ -60,7 +60,7 @@
- matrix.conf
- flathub-verified.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/main
@ -74,7 +74,7 @@
with_items:
- 'sponsor.conf'
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/main
@ -111,7 +111,7 @@
src=browserid.fedoraproject.org dest=/srv/web/browserid.fedoraproject.org
owner=root group=root mode=0644
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/main
@ -123,7 +123,7 @@
owner=root group=root mode=0644
when: env == "staging"
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/main
@ -135,7 +135,7 @@
owner=root group=root mode=0644
when: env != "staging"
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/main

View file

@ -12,7 +12,7 @@
with_items:
- mirrors.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/mirrors

View file

@ -6,7 +6,7 @@
with_items:
- ols.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/ols

View file

@ -2,7 +2,7 @@
- name: Copy ostree config file
ansible.builtin.copy: src=ostree.conf dest=/etc/httpd/conf.d/ostree.fedoraproject.org/ostree.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- ostree

View file

@ -13,7 +13,7 @@
ansible.builtin.copy: src="{{ private }}/files/fedora-ca.cert" dest=/etc/pki/httpd/fedora-server-ca.cert
owner=root group=root mode=0644
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/registry
@ -29,7 +29,7 @@
dest="/etc/pki/httpd/registry-ca-{{env}}.cert"
owner=root group=root mode=0644
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/registry
@ -38,7 +38,7 @@
ansible.builtin.copy: src="passwd-{{env}}" dest=/etc/httpd/conf.d/registry.fedoraproject.org/passwd
owner=root group=root mode=0644
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/registry

View file

@ -4,7 +4,7 @@
ansible.builtin.package: name=mod_auth_gssapi
state=present
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/src
@ -16,7 +16,7 @@
group=apache
mode=0600
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/src
@ -28,7 +28,7 @@
with_items:
- expires.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/src

View file

@ -13,7 +13,7 @@
- start-web.conf
- languages.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedora-web
- fedora-web/start

View file

@ -3,4 +3,4 @@
- name: Conditionally restart fedora_nightlies consumer service
ansible.builtin.command: /usr/local/bin/conditional-restart.sh fm-consumer@fedora_nightlies
listen:
- restart fedora_nightlies
- Restart fedora_nightlies

View file

@ -101,7 +101,7 @@
ansible.builtin.command: "python3 -m pip install --no-deps /root/fedora_nightlies"
when: "gitfn is changed or instfn.rc != 0"
notify:
- restart fedora_nightlies
- Restart fedora_nightlies
- name: Create /etc/pki/fedora-messaging
ansible.builtin.file:
@ -145,7 +145,7 @@
- name: Configure fedora-messaging fedora_nightlies
ansible.builtin.template: src=fedora_nightlies.toml.j2 dest=/etc/fedora-messaging/fedora_nightlies.toml owner=root group=root mode=0640
notify:
- restart fedora_nightlies
- Restart fedora_nightlies
tags:
- config

View file

@ -18,6 +18,6 @@
with_items:
- fedoraloveskde.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- fedoraloveskde

View file

@ -7,7 +7,7 @@
name:
- php
notify:
- reload httpd
- Reload httpd
tags:
- packages
@ -24,7 +24,7 @@
group=root
mode=0644
notify:
- reload httpd
- Reload httpd
tags:
- config

View file

@ -33,7 +33,7 @@
group=root
mode=0644
notify:
- reload httpd
- Reload httpd
tags:
- geoip_config
- config
@ -61,7 +61,7 @@
group=root
mode=0775
notify:
- reload httpd
- Reload httpd
tags:
- geoip_config
- config

View file

@ -5,7 +5,7 @@
dest=/etc/httpd/conf.d/{{website}}/geoip-city-wsgi-proxy.conf
owner=root group=root mode=0644
notify:
- reload httpd
- Reload httpd
tags:
- geoip-city-wsgi
- geoip-city-wsgi/proxy

View file

@ -46,4 +46,4 @@
when: ansible_distribution_major_version|int == 6 and ansible_distribution == 'RedHat'
tags: git/server
notify:
- restart xinetd
- Restart xinetd

View file

@ -30,7 +30,7 @@
- config
- github2fedmsg
notify:
- restart apache
- Restart apache
- name: Copy github2fedmsg wsgi script
ansible.builtin.copy: >
@ -42,7 +42,7 @@
- config
- github2fedmsg
notify:
- restart apache
- Restart apache
- name: Copy github2fedmsg httpd config
ansible.builtin.template: >
@ -54,7 +54,7 @@
- config
- github2fedmsg
notify:
- restart apache
- Restart apache
- name: Hotfix - allow velruse to do stateless openid
ansible.builtin.copy: >
@ -65,7 +65,7 @@
- hotfix
- github2fedmsg
notify:
- restart apache
- Restart apache
# Fix for https://pagure.io/fedora-infrastructure/issue/11776
- name: Hotfix - Fix the KeyError when looking for user in github event
@ -76,7 +76,7 @@
- hotfix
- github2fedmsg
notify:
- restart apache
- Restart apache
- name: Ensure selinux lets httpd talk to postgres
seboolean: name=httpd_can_network_connect_db persistent=yes state=yes

View file

@ -7,7 +7,7 @@
- ansible.builtin.template: src=rewrite.conf dest=/etc/httpd/conf.d/{{website}}/haproxy.conf
notify:
- reload httpd
- Reload httpd
tags:
- haproxy
- haproxy/rewrite
@ -15,7 +15,7 @@
- ansible.builtin.template: src=rewrite.conf dest=/etc/httpd/conf.d/{{website}}/haproxy.conf
notify:
- reload proxyhttpd
- Reload proxyhttpd
tags:
- haproxy
- haproxy/rewrite

View file

@ -17,7 +17,7 @@
with_items:
- { file: haproxy.cfg, dest: /etc/haproxy/haproxy.cfg }
notify:
- restart haproxy
- Restart haproxy
tags:
- haproxy

Some files were not shown because too many files have changed in this diff Show more