diff --git a/tasks/yum.yml b/tasks/yum.yml index 883a3b98..9d6599ae 100644 --- a/tasks/yum.yml +++ b/tasks/yum.yml @@ -33,7 +33,7 @@ replace: path: '{{ item }}' regexp: '^\s*gpgcheck\W.*' - line: 'gpgcheck=1' + replace: 'gpgcheck=1' register: status failed_when: status.rc is defined and status.rc != 257 loop: