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.

30 lines
865 B

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