ansible/roles/fedora-web/build/tasks/main.yml
Ryan Lerch 62952df107 ansiblelint fixes-- fqcn[action-core] - file to ansible.builtin.file
Replaces many references to  file: with ansible.builtin.file

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:41:52 +10:00

115 lines
2.2 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
ansible.builtin.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
ansible.builtin.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
ansible.builtin.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
ansible.builtin.file:
path: /etc/cron.d/syncTranslations.cron
state: absent
tags:
- cron
- name: Remove the syncStatic cronjob
ansible.builtin.file:
path: /etc/cron.d/syncStatic.cron
state: absent
tags:
- cron