ansible/roles/easyfix/gather/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

71 lines
1.5 KiB
YAML

---
# Configuration for the easyfix web page
## Create all the folder used/needed
- name: Create the easyfix folder
ansible.builtin.file: state=directory
path=/srv/web/easyfix
owner=apache group=apache mode=0755
tags:
- easyfix
- name: Create the easyfix configuration folder
ansible.builtin.file: state=directory
path=/etc/fedora-gather-easyfix/
owner=root group=root mode=0755
tags:
- easyfix
## Install packages
- name: Install needed packages
package: name={{ item }} state=present
with_items:
- python-fedora
- python-jinja2
- python-kitchen
- python-bugzilla
tags:
- packages
- easyfix
## Install all files
- name: Install the easyfix js/css files
copy: >
src={{ item }} dest=/srv/web/easyfix/{{ item }}
owner=root group=root mode=0644
with_items:
- jquery-1.7.1.min.js
- jquery-ui-1.8.17.custom.css
- jquery.ui.tabs.js
- jquery.ui.widget.js
tags:
- files
- easyfix
- name: Install the easyfix template
copy: >
src=template.html dest=/etc/fedora-gather-easyfix/template.html
owner=root group=root mode=0644
tags:
- files
- easyfix
- name: Install the easyfix script
template: >
src=gather_easyfix.py dest=/usr/local/bin/gather_easyfix.py
owner=root group=root mode=0755
tags:
- files
- easyfix
## Install the cron job
- name: Install the easyfix cronjob
copy: >
src=easyfix.cron dest=/etc/cron.d/easyfix.cron
owner=root group=root mode=0644
tags:
- files
- easyfix