mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-24 02:20:51 +08:00
27 lines
600 B
YAML
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
|