- name: Clone fastd repo when: fastd_install_from_source == 'true' register: clonefastd git: repo={{fastd_repo}} dest=/usr/src/fastd accept_hostkey=yes version={{fastd_repo_tag}} - name: Create build dirs when: clonelibuecc|changed register: builddircreated file: path={{item}} state=directory with_items: - "{{fastd_build_dir}}" - name: Build and install fastd when: builddircreated|changed command: cmake /usr/src/fastd && make && make install chdir={{fastd_build_dir}}