Files
fedora-infra_ansible/roles/rdbsync/tasks/main.yml
2017-08-16 14:39:59 +02:00

27 lines
600 B
YAML

---
# Configuration for the rbsync service
- name: install needed packages
package: pkg={{ 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:
- restart systemd
- name: Start and enable the service
service: name={{ item }} state=started enabled=yes
with_items:
- rdbsync