I have a Jenkins pipeline that automates an install using Ansible. One of the steps includes copying a tar file to the target host using the unarchive module. This step finishes with a ‘changed’ status if rerun and so isn’t idempotent as would be preferred. Is there a way to perform a check on the target and not redo this step? Any suggestions would be appreciated
code snippet:
- name: unarchive gg installer to target gg server
unarchive:
src: “{{ pkg_src }}/{{ ogg_installer }}”
dest: “{{ ogg_product_dir }}”
become: yes
become_method: sudo
become_user: ogg
Thanks.