Files
fedora-infra_ansible/roles/rdbsync/tasks/main.yml
Patrick Uiterwijk 936e8b261a yum accepted pkg=, package calls it name=
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2017-10-09 00:38:26 +02:00

27 lines
601 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:
- restart systemd
- name: Start and enable the service
service: name={{ item }} state=started enabled=yes
with_items:
- rdbsync