main.yml 714 B

123456789101112131415161718192021222324252627
  1. ---
  2. # tasks file for alfred-json
  3. - include_vars: "{{ ansible_os_family }}.yml"
  4. - name: Install build dependencies
  5. apt: name={{item}} state=present
  6. with_items: "{{alfred_json_build_deps}}"
  7. - name: Create directories for clone and build
  8. file: dest={{item}} state=directory
  9. with_items:
  10. - "{{alfred_json_src_dir}}"
  11. - "{{alfred_json_build_dir}}"
  12. - name: Clone alfred-json repo
  13. git: dest={{alfred_json_src_dir}} repo={{alfred_json_repo_url}} version={{alfred_json_version}}
  14. - name: Cmake alfred-json
  15. shell: cmake {{alfred_json_src_dir}}
  16. args:
  17. chdir: "{{alfred_json_build_dir}}"
  18. - name: Build and install alfred-json
  19. shell: make && make install
  20. args:
  21. chdir: "{{alfred_json_build_dir}}"