Files
fedora-infra_ansible/roles/rdbsync/tasks/main.yml
2017-12-20 23:04:13 +00:00

27 lines
600 B
YAML

---
# Configuration for the rbsync service
- name: install needed packages
package: name={{ item }} state=latest
with_items:
- rdbsync
tags:
- packages
- rdbsync
- name: Override the default systemd service file
template: src={{ item.file }}
dest={{ item.location }}/{{ item.file }}
owner=apache group=apache mode=0600
with_items:
- { file: rdbsync.service, location: /etc/systemd/system/ }
tags:
- config
notify:
- reload systemd
- name: Start and enable the service
service: name={{ item }} state=started enabled=yes
with_items:
- rdbsync