source.yml 495 B

123456789101112131415
  1. - name: Clone fastd repo
  2. when: fastd_install_from_source == 'true'
  3. register: clonefastd
  4. git: repo={{fastd_repo}} dest=/usr/src/fastd accept_hostkey=yes version={{fastd_repo_tag}}
  5. - name: Create build dirs
  6. when: clonelibuecc|changed
  7. register: builddircreated
  8. file: path={{item}} state=directory
  9. with_items:
  10. - "{{fastd_build_dir}}"
  11. - name: Build and install fastd
  12. when: builddircreated|changed
  13. command: cmake /usr/src/fastd && make && make install chdir={{fastd_build_dir}}