Skip to content
Snippets Groups Projects
Commit 5f4cc3e1 authored by Sergii Golovatiuk's avatar Sergii Golovatiuk
Browse files

Replace always_run with check_mode

always_run was deprecated in Ansible 2.2 and will be removed in 2.4
ansible logs contain "[DEPRECATION WARNING]: always_run is deprecated.
Use check_mode = no instead". This patch fix deprecation.
parent 2f0f0006
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
- name: 'GIT | generate git informations' - name: 'GIT | generate git informations'
local_action: command {{ role_path }}/gen-gitinfos.sh global local_action: command {{ role_path }}/gen-gitinfos.sh global
register: gitinfo register: gitinfo
always_run: yes check_mode: no
- name: 'GIT | copy ansible information' - name: 'GIT | copy ansible information'
template: template:
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
- name: 'GIT | generate diff file' - name: 'GIT | generate diff file'
local_action: command {{ role_path }}/gen-gitinfos.sh diff local_action: command {{ role_path }}/gen-gitinfos.sh diff
register: gitdiff register: gitdiff
always_run: yes check_mode: no
- name: 'GIT | copy git diff file' - name: 'GIT | copy git diff file'
copy: copy:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment