From db3f73f6e843debb19ad2fab5786a9fa7b22c7e0 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 9 Nov 2015 18:04:20 +0000 Subject: [PATCH] Try this syntax, ansible didn't like the last one --- roles/fedmsg/base/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/fedmsg/base/tasks/main.yml b/roles/fedmsg/base/tasks/main.yml index 738c626f2d..538a0afebc 100644 --- a/roles/fedmsg/base/tasks/main.yml +++ b/roles/fedmsg/base/tasks/main.yml @@ -15,12 +15,12 @@ - name: install python2 fedmsg package yum: pkg=fedmsg state=present - when: "'python34-fedmsg' not in group_names" and ansible_distribution_major_version|int < 22 + when: "python34-fedmsg" not in group_names and ansible_distribution_major_version|int < 22 tags: fedmsg/base - name: install the python34 fedmsg package 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 and ansible_distribution_major_version|int < 22 tags: fedmsg/base - name: install needed packages @@ -36,12 +36,12 @@ - name: install python2 fedmsg package dnf: pkg=fedmsg state=present - when: "'python34-fedmsg' not in group_names" and ansible_distribution_major_version|int > 21 + 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 + 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