ansible-ops-management/tasks/rss.yml
2023-09-05 01:47:58 -07:00

41 lines
921 B
YAML

---
- name: Ensure docroot actually exists
ansible.builtin.file:
path: "{{ feeds_output_dir }}"
owner: '10004'
group: '10005'
mode: '0755'
state: directory
- name: Ensure libexec exists
ansible.builtin.file:
path: "/usr/libexec/rocky"
owner: root
group: root
mode: '0755'
state: directory
- name: Generate repo file for RSS feed data
ansible.builtin.template:
src: "etc/yum.repos.d/rss.repo.j2"
dest: "/etc/yum.repos.d/rss.repo"
owner: root
group: root
mode: '0644'
- name: Deploy the generator script
ansible.builtin.template:
src: "usr/libexec/rocky/rss.sh.j2"
dest: "/usr/libexec/rocky/rss.sh"
owner: root
group: root
mode: '0755'
- name: Deploy the RSS feeder script itself
ansible.builtin.copy:
src: "usr/libexec/rocky/rss.py"
dest: "/usr/libexec/rocky/rss.py"
owner: root
group: root
mode: '0755'
...