My playbook has the snippet below. It correctly installs the software, but when I rerun the playbook, the "configure" and "make install" steps are run again. The play recap shows 2 changes. The state of the computer is correct upon completion of script, but I would rather not re-run these steps. How can I skip running the steps that have already been run?
- name: Install smalt
block:
# Download and uncompress smalt
- unarchive:
src="https://sourceforge.net/projects/smalt/files/smalt-0.7.6-static.tar.gz"
dest="{{ansible_user_dir}}/software"
creates="{{ansible_user_dir}}/software/smalt-0.7.6"
copy=no
- name: configure
command: ./configure
args:
chdir: "{{ansible_user_dir}}/software/smalt-0.7.6"
- make:
chdir: "{{ansible_user_dir}}/software/smalt-0.7.6"
- make:
chdir: "{{ansible_user_dir}}/software/smalt-0.7.6"
target: install
become: yes