ansible-ops-management/tasks/rss.yml

42 lines
921 B
YAML
Raw Normal View History

2023-09-05 06:44:53 +00:00
---
- name: Ensure docroot actually exists
ansible.builtin.file:
path: "{{ feeds_output_dir }}"
2023-09-05 08:05:58 +00:00
owner: '10004'
group: '10005'
mode: '0755'
2023-09-05 06:44:53 +00:00
state: directory
2023-09-05 08:46:30 +00:00
- name: Ensure libexec exists
ansible.builtin.file:
path: "/usr/libexec/rocky"
owner: root
group: root
mode: '0755'
state: directory
2023-09-05 06:44:53 +00:00
- 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"
2023-09-05 08:47:58 +00:00
dest: "/usr/libexec/rocky/rss.sh"
2023-09-05 06:44:53 +00:00
owner: root
group: root
mode: '0755'
2023-09-05 08:05:58 +00:00
- 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'
2023-09-05 06:44:53 +00:00
...