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>
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
---
|
|
- ansible.builtin.copy: >
|
|
src=docs-rsync.stg dest=/usr/local/bin/docs-rsync
|
|
owner=root group=root mode=0755
|
|
tags:
|
|
- fedora-docs
|
|
- fedora-docs/proxy
|
|
when: env == "staging"
|
|
|
|
- ansible.builtin.copy: >
|
|
src=docs-rsync dest=/usr/local/bin/docs-rsync
|
|
owner=root group=root mode=0755
|
|
tags:
|
|
- fedora-docs
|
|
- fedora-docs/proxy
|
|
when: env == "production"
|
|
|
|
- ansible.builtin.copy: >
|
|
src=cron-docs-rsync dest=/etc/cron.d/docs-rsync
|
|
owner=root group=root mode=0644
|
|
tags:
|
|
- fedora-docs
|
|
- fedora-docs/proxy
|
|
when: env == "production"
|
|
|
|
- ansible.builtin.copy: >
|
|
src=cron-docs-rsync.stg dest=/etc/cron.d/docs-rsync
|
|
owner=root group=root mode=0644
|
|
tags:
|
|
- fedora-docs
|
|
- fedora-docs/proxy
|
|
when: env == "staging"
|
|
|
|
- ansible.builtin.copy: >
|
|
src={{item}} dest=/etc/httpd/conf.d/{{website}}/{{item}}
|
|
owner=root group=root mode=0644
|
|
with_items:
|
|
- fedora-docs.conf
|
|
- fedora-docs-old.conf
|
|
notify:
|
|
- Reload proxyhttpd
|
|
tags:
|
|
- fedora-docs
|
|
- fedora-docs/proxy
|
|
when: env == "production"
|
|
|
|
- ansible.builtin.copy: >
|
|
src={{item}}.stg dest=/etc/httpd/conf.d/{{website}}/{{item}}
|
|
owner=root group=root mode=0644
|
|
with_items:
|
|
- fedora-docs.conf
|
|
- fedora-docs-old.conf
|
|
notify:
|
|
- Reload proxyhttpd
|
|
tags:
|
|
- fedora-docs
|
|
- fedora-docs/proxy
|
|
when: env == "staging"
|