main.yml 936 B

12345678910111213141516171819202122232425
  1. ---
  2. # tasks file for ffmap-backend
  3. - include_vars: "{{ ansible_os_family }}.yml"
  4. - include_vars: "{{ ansible_distribution }}-{{ ansible_distribution_release }}.yml"
  5. when: ansible_distribution == 'Debian' and ansible_distribution_release == 'wheezy'
  6. - name: Install ffmap-backend dependencies
  7. apt: name={{item}} state=present
  8. with_items: "{{ffmap_backend_dependencies}}"
  9. - name: Install ffmap-backend python dependencies
  10. pip: name={{item}} executable="{{ffmap_backend_pip_executable}}"
  11. with_items: "{{ffmap_backend_python_dependencies}}"
  12. - name: Create install directory for ffmap-backend
  13. file: dest={{ffmap_backend_install_dir}} state=directory
  14. - name: Clone ffmap-backend sources
  15. git: repo={{ffmap_backend_repo_url}} version={{ffmap_backend_version}} dest={{ffmap_backend_install_dir}}
  16. - name: Add ffmap-backend cron entry
  17. template: src=ffmap-backend.cron.j2 dest=/etc/cron.d/ffmap-backend
  18. notify: Restart cron