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.

31 lines
895 B

  1. ---
  2. - hosts: localhost
  3. strategy: linear
  4. vars:
  5. mitogen_version: master
  6. mitogen_url: https://github.com/dw/mitogen/archive/{{ mitogen_version }}.zip
  7. tasks:
  8. - name: Create mitogen plugin dir
  9. file:
  10. path: "{{ item }}"
  11. state: directory
  12. become: false
  13. loop:
  14. - "{{ playbook_dir }}/plugins/mitogen"
  15. - "{{ playbook_dir }}/dist"
  16. - name: download mitogen release
  17. get_url:
  18. url: "{{ mitogen_url }}"
  19. dest: "{{ playbook_dir }}/dist/mitogen_{{ mitogen_version }}.zip"
  20. validate_certs: true
  21. - name: extract zip
  22. unarchive:
  23. src: "{{ playbook_dir }}/dist/mitogen_{{ mitogen_version }}.zip"
  24. dest: "{{ playbook_dir }}/dist/"
  25. - name: copy plugin
  26. synchronize:
  27. src: "{{ playbook_dir }}/dist/mitogen-{{ mitogen_version }}/"
  28. dest: "{{ playbook_dir }}/plugins/mitogen"