Checking for python-argparse before installing it from URL.
This commit is contained in:
parent
78f0f438a3
commit
83b78a5c6f
@ -10,11 +10,20 @@
|
|||||||
become: yes
|
become: yes
|
||||||
tags: ansible
|
tags: ansible
|
||||||
|
|
||||||
|
- name: Checking for python-argparse
|
||||||
|
shell: rpm -q python-argparse
|
||||||
|
become: yes
|
||||||
|
register: check_argparse
|
||||||
|
ignore_errors: yes
|
||||||
|
changed_when: "check_argparse.rc == 1"
|
||||||
|
tags: ansible
|
||||||
|
|
||||||
- name: Installazione python-argparse
|
- name: Installazione python-argparse
|
||||||
yum:
|
yum:
|
||||||
name: "ftp://fr2.rpmfind.net/linux/centos/6.7/extras/i386/Packages/python-argparse-1.2.1-2.el6.centos.noarch.rpm"
|
name: "ftp://fr2.rpmfind.net/linux/centos/6.7/extras/i386/Packages/python-argparse-1.2.1-2.el6.centos.noarch.rpm"
|
||||||
state: present
|
state: present
|
||||||
become: yes
|
become: yes
|
||||||
|
when: check_argparse|changed
|
||||||
tags: ansible
|
tags: ansible
|
||||||
|
|
||||||
#- name: Download della gestione client con ansible
|
#- name: Download della gestione client con ansible
|
||||||
|
Loading…
x
Reference in New Issue
Block a user