Skip to content

Commit

Permalink
HotFix: ansible 2.14 compatibility
Browse files Browse the repository at this point in the history
- `warn` was removed from `shell` arguments
- Bump minimum ansible version to something acceptable (oldest maintained).
  • Loading branch information
zeitounator committed Nov 28, 2022
1 parent c0e1266 commit df33938
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ galaxy_info:

license: license (GPLv3)

min_ansible_version: 2.5.4
min_ansible_version: 2.12.10

github_branch: main

Expand Down
16 changes: 7 additions & 9 deletions tasks/nexus_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit df33938

Please sign in to comment.