mirror of https://gitlab.com/tildes/tildes.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
388 B
16 lines
388 B
---
|
|
- name: Set up service files for background consumers
|
|
template:
|
|
src: "consumer.service.jinja2"
|
|
dest: /etc/systemd/system/consumer-{{ item }}.service
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
loop: "{{ consumers }}"
|
|
|
|
- name: Start and enable all consumer services
|
|
service:
|
|
name: consumer-{{ item }}
|
|
state: started
|
|
enabled: true
|
|
loop: "{{ consumers }}"
|