diff --git a/meta/main.yml b/meta/main.yml index 196ac2c4..c8b77a9b 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -6,7 +6,7 @@ galaxy_info: license: license (GPLv3) - min_ansible_version: 2.5.4 + min_ansible_version: 2.12.10 github_branch: main diff --git a/tasks/nexus_install.yml b/tasks/nexus_install.yml index fc65b4a2..33f0b50f 100644 --- a/tasks/nexus_install.yml +++ b/tasks/nexus_install.yml @@ -557,18 +557,16 @@ - block: - name: Sync new scripts to old and get differences - shell: > - set -o pipefail && - rsync -ric {{ nexus_data_dir }}/groovy-raw-scripts/new/ {{ nexus_data_dir }}/groovy-raw-scripts/current/ - | cut -d" " -f 2 | sed "s/\.groovy//g" + shell: + cmd: > + set -o pipefail && + rsync -ric {{ nexus_data_dir }}/groovy-raw-scripts/new/ {{ nexus_data_dir }}/groovy-raw-scripts/current/ + | cut -d" " -f 2 | sed "s/\.groovy//g" + executable: /bin/bash register: nexus_groovy_files_changed check_mode: no changed_when: false - # simple check on changed files kept on host - # skip ansible lint (we don't want to use synchronize module for this) - args: - warn: false - executable: /bin/bash + rescue: - name: Fail with information on rsync error fail: