mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-06-27 23:57:02 +08:00
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>
85 lines
1.8 KiB
YAML
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
|