ansible/roles/fedora-web/build/tasks/main.yml
Michal Konecny 9618c253a6 [fedora-web/build] Update with RHEL 9 packages
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-05-22 14:37:41 +02:00

115 lines
2.1 KiB
YAML

---
- name: Install needed packages
package:
state: present
name:
- babel
- git
- python-feedparser
- python-genshi
- python-setuptools
- langtable-python
tags:
- packages
- fedora-web
when: ansible_distribution_major_version|int < 9
- name: Install needed packages
package:
state: present
name:
- babel
- git
- python3-feedparser
- python3-genshi
- python3-setuptools
- python3-langtable
tags:
- packages
- fedora-web
when: ansible_distribution_major_version|int >= 9
- name: Install extra packages for staging
package:
state: present
name:
- python-dogpile-cache
tags:
- packages
- fedora-web
when: ansible_distribution_major_version|int < 9
- name: Install extra packages for staging
package:
state: present
name:
- python3-dogpile-cache
tags:
- packages
- fedora-web
when: ansible_distribution_major_version|int >= 9
- name: Create file to indicate we want live fedimg data
copy:
dest: /var/fedora_websites_live_fedimg
content: "Indicator file"
tags:
- fedora-web
- name: Create directories
file:
state: directory
path: /srv/web/{{ item }}
owner: apache
group: apache
mode: '0755'
setype: httpd_sys_content_t
seuser: system_u
with_items:
- fedora-web
- fedoraproject.org
- talk.fedoraproject.org
- mirrors.fedoraproject.org
- iot.fedoraproject.org
tags:
- fedora-web
- name: make fmw dir
file:
state: directory
path: /srv/web/fmw
owner: apache
group: sysadmin-releng
mode: '2775'
setype: httpd_sys_content_t
seuser: system_u
tags:
- fedora-web
when: env != 'staging'
- name: make fmw dir
file:
state: directory
path: /srv/web/fmw
owner: apache
group: apache
mode: '2775'
setype: httpd_sys_content_t
seuser: system_u
tags:
- fedora-web
when: env == 'staging'
- name: Remove the syncTranslations cronjob
file:
path: /etc/cron.d/syncTranslations.cron
state: absent
tags:
- cron
- name: Remove the syncStatic cronjob
file:
path: /etc/cron.d/syncStatic.cron
state: absent
tags:
- cron