Last active
September 16, 2015 16:47
-
-
Save jhrcz/83f2131dfe32d9c23c48 to your computer and use it in GitHub Desktop.
fix missing abrt dependency python-argparse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# | |
# i use this way to detect and report (as changed state) when its missing when running in --check mode | |
# | |
# it installs this package only when its the only package to install | |
# so i'm workarounding the problem of yum, could not install only one package | |
# | |
# | |
# https://bugzilla.redhat.com/show_bug.cgi?id=1246539 | |
# | |
# error 1: | |
# | |
#Traceback (most recent call last): | |
# File "/usr/bin/abrt-action-notify", line 18, in <module> | |
# from argparse import ArgumentParser | |
#ImportError: No module named argparse | |
# error 2: | |
# | |
#Traceback (most recent call last): | |
# File "/usr/libexec/abrt-action-generate-machine-id", line 24, in <module> | |
# from argparse import ArgumentParser | |
#ImportError: No module named argparse | |
- hosts: all | |
remote_user: root | |
gather_facts: no | |
tasks: | |
- shell: rpm -qa | grep python-argparse | |
register: already_installed | |
always_run: yes | |
- shell: /bin/true | |
always_run: yes | |
changed_when: already_installed|failed | |
- shell: yum --setopt=reposdir=/etc/yum.repos.d --disableplugin=rhnplugin install --downloadonly python-argparse | |
when: already_installed|failed | |
- shell: rpm -ivh /var/cache/yum/x86_64/6/base/packages/python-argparse-*.el6.noarch.rpm | |
when: already_installed|failed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment