Files
fedora-infra_ansible/roles/apps-fp-o/tasks/main.yml
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

59 lines
1.4 KiB
YAML

---
- name: Install that apps-fp-o rpm package
ansible.builtin.package: name=apps-fp-o state=present
tags:
- apps-fp-o
- name: Copy in the proxy config
ansible.builtin.copy: >
src=apps.fp.o.conf dest=/etc/httpd/conf.d/{{website}}/apps.fp.o.conf
owner=root group=root mode=0644
notify:
- Reload proxyhttpd
tags:
- apps-fp-o
- name: Ensure directory exixts
ansible.builtin.file:
path: "{{ item }}"
state: directory
mode: '2755'
loop:
- '/srv/web/apps-fp-o/global/'
- '/srv/web/apps-fp-o/img/icons/'
- '/srv/web/apps-fp-o/fedmenu/'
tags:
- apps-fp-o
- name: Copy over any extra icons we carry
synchronize: src=img/icons/ dest=/srv/web/apps-fp-o/img/icons/
tags:
- apps-fp-o
- name: Copy in some extra global assets (openid.js, fedora-boostrap...) used around our apps
synchronize: src=global/ dest=/srv/web/apps-fp-o/global/
tags:
- apps-fp-o
- name: Copy in fedmenu assets for staging
synchronize: src=fedmenu-staging/ dest=/srv/web/apps-fp-o/fedmenu/
when: env == 'staging'
tags:
- apps-fp-o
- name: Copy in fedmenu assets for production
synchronize: src=fedmenu/ dest=/srv/web/apps-fp-o/fedmenu/
when: env != 'staging'
tags:
- apps-fp-o
- name: Copy in our app data yaml
ansible.builtin.copy: >
src=apps.yaml dest=/usr/share/apps-fp-o/apps.yaml
owner=root group=root mode=0644
notify:
- Rebuild apps-fp-o html
- Rebuild apps-fp-o json
tags:
- apps-fp-o