Checking for python-argparse before installing it from URL.

This commit is contained in:
Emiliano Vavassori 2016-02-16 17:32:51 +01:00
parent 78f0f438a3
commit 83b78a5c6f
1 changed files with 9 additions and 0 deletions

View File

@ -10,11 +10,20 @@
become: yes
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
yum:
name: "ftp://fr2.rpmfind.net/linux/centos/6.7/extras/i386/Packages/python-argparse-1.2.1-2.el6.centos.noarch.rpm"
state: present
become: yes
when: check_argparse|changed
tags: ansible
#- name: Download della gestione client con ansible