Merge "Use force OPTIONS to install the jq"

This commit is contained in:
Zuul 2020-06-02 17:50:45 +00:00 committed by Gerrit Code Review
commit fcc3ffe734

View File

@ -22,15 +22,7 @@
- jq
rpm:
- jq
- name: removing jq binary on centos
become: true
become_user: root
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
file:
path: "{{ item }}"
state: absent
with_items:
- /usr/bin/jq
- name: installing jq 1.5 binary for centos
become: true
become_user: root
@ -39,3 +31,4 @@
url: https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
dest: /usr/bin/jq
mode: 0555
force: yes