Files
fedora-infra_ansible/roles/fedora-web/ostree/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

85 lines
1.8 KiB
YAML

---
- name: Copy ostree config file
ansible.builtin.copy: src=ostree.conf dest=/etc/httpd/conf.d/ostree.fedoraproject.org/ostree.conf
notify:
- Reload proxyhttpd
tags:
- fedora-web
- ostree
- name: Make ostree dir
ansible.builtin.file: state=directory
path=/srv/web/ostree
owner=apache
group=sysadmin-releng
mode=2775
setype=httpd_sys_content_t
seuser=system_u
tags:
- fedora-web
- ostree
when: env != 'staging'
- name: Make ostree dir
ansible.builtin.file: state=directory
path=/srv/web/ostree
owner=apache
group=apache
mode=2775
setype=httpd_sys_content_t
seuser=system_u
tags:
- fedora-web
- ostree
when: env == 'staging'
- name: Copy over the static files
ansible.builtin.copy: src={{item}} dest=/srv/web/ostree/{{item}} mode=0644
with_items:
- config
- mirrorlist
tags:
- fedora-web
- ostree
- name: Make IoT ostree dir
ansible.builtin.file: state=directory
path=/srv/web/ostree/iot
owner=apache
group=sysadmin-releng
mode=2775
setype=httpd_sys_content_t
seuser=system_u
tags:
- fedora-web
- ostree
when: env != 'staging'
- name: Make IoT ostree dir
ansible.builtin.file: state=directory
path=/srv/web/ostree/iot
owner=apache
group=apache
mode=2775
setype=httpd_sys_content_t
seuser=system_u
tags:
- fedora-web
- ostree
when: env == 'staging'
- name: Copy over the static IoT files
ansible.builtin.copy: src=iot_{{item}} dest=/srv/web/ostree/iot/{{item}} mode=0644
with_items:
- config
- mirrorlist
tags:
- fedora-web
- ostree
- name: Copy in the sync-summary cron job
ansible.builtin.copy: src=cron-sync-ostree-summary dest=/etc/cron.d/sync-ostree-summary
tags:
- fedora-web
- ostree