main.yml 480 B

123456789101112131415
  1. ---
  2. # tasks file for map-server
  3. - include_vars: "{{ ansible_os_family }}.yml"
  4. - name: Install necessary packages
  5. apt: name={{item}} state=present
  6. with_items: "{{mapserver_packages}}"
  7. - name: Create supervisor services
  8. template: src=supervisor.service.j2 dest=/etc/supervisor/conf.d/{{item.name}}.conf
  9. with_items: "{{supervisor_services}}"
  10. notify: Restart supervisor
  11. - name: Ensure supervisor is started and enabled
  12. service: name=supervisor state=started enabled=yes