Looking at this, the only python34-fedmsg hosts are rhel7 so won't have dnf.
This commit is contained in:
parent
2549c3e5ec
commit
ec13777bd8
1 changed files with 2 additions and 12 deletions
|
@ -15,12 +15,12 @@
|
||||||
|
|
||||||
- name: install python2 fedmsg package
|
- name: install python2 fedmsg package
|
||||||
yum: pkg=fedmsg state=present
|
yum: pkg=fedmsg state=present
|
||||||
when: python34-fedmsg not in group_names and ansible_distribution_major_version|int < 22
|
when: "'python34-fedmsg' in group_names"
|
||||||
tags: fedmsg/base
|
tags: fedmsg/base
|
||||||
|
|
||||||
- name: install the python34 fedmsg package
|
- name: install the python34 fedmsg package
|
||||||
yum: pkg=python34-fedmsg-core state=present
|
yum: pkg=python34-fedmsg-core state=present
|
||||||
when: python34-fedmsg in group_names and ansible_distribution_major_version|int < 22
|
when: "'python34-fedmsg' in group_names"
|
||||||
tags: fedmsg/base
|
tags: fedmsg/base
|
||||||
|
|
||||||
- name: install needed packages
|
- name: install needed packages
|
||||||
|
@ -34,16 +34,6 @@
|
||||||
- fedmsg/base
|
- fedmsg/base
|
||||||
when: ansible_distribution_major_version|int > 21
|
when: ansible_distribution_major_version|int > 21
|
||||||
|
|
||||||
- name: install python2 fedmsg package
|
|
||||||
dnf: pkg=fedmsg state=present
|
|
||||||
when: python34-fedmsg not in group_names and ansible_distribution_major_version|int > 21
|
|
||||||
tags: fedmsg/base
|
|
||||||
|
|
||||||
- name: install the python34 fedmsg package
|
|
||||||
dnf: pkg=python34-fedmsg-core state=present
|
|
||||||
when: python34-fedmsg in group_names and ansible_distribution_major_version|int > 21
|
|
||||||
tags: fedmsg/base
|
|
||||||
|
|
||||||
# We only need this on el6. On el7, the fedmsg package uses systemd-tempfiles
|
# We only need this on el6. On el7, the fedmsg package uses systemd-tempfiles
|
||||||
# to generate this effect for us. Note that at the bottom of this role we add
|
# to generate this effect for us. Note that at the bottom of this role we add
|
||||||
# the nrpe user to the fedmsg group so that it has *write* permissions to a unix
|
# the nrpe user to the fedmsg group so that it has *write* permissions to a unix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue