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

  1. ---
  2. - name: Set up service files for background consumers
  3. template:
  4. src: "consumer.service.jinja2"
  5. dest: /etc/systemd/system/consumer-{{ item }}.service
  6. owner: root
  7. group: root
  8. mode: 0644
  9. loop: "{{ consumers }}"
  10. - name: Start and enable all consumer services
  11. service:
  12. name: consumer-{{ item }}
  13. state: started
  14. enabled: true
  15. loop: "{{ consumers }}"