From f927b0d907400cfadcbc15f45e94d065783bf537 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 4 Mar 2014 18:47:58 +0000 Subject: [PATCH] Update this to use 'is defined' --- roles/fas_client/tasks/main.yml | 2 +- roles/koji_builder/tasks/main.yml | 2 +- tasks/growroot_cloud.yml | 2 +- tasks/serialgetty.yml | 2 +- tasks/sign_setup.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/fas_client/tasks/main.yml b/roles/fas_client/tasks/main.yml index f4d13d25da..0357a6c9ee 100644 --- a/roles/fas_client/tasks/main.yml +++ b/roles/fas_client/tasks/main.yml @@ -18,7 +18,7 @@ - name: install nss_db on rhel hosts only yum: state=installed name=nss_db - when: is_rhel == 'True' + when: is_rhel is defined tags: - packages diff --git a/roles/koji_builder/tasks/main.yml b/roles/koji_builder/tasks/main.yml index a15f2155e3..00e8478d4c 100644 --- a/roles/koji_builder/tasks/main.yml +++ b/roles/koji_builder/tasks/main.yml @@ -166,7 +166,7 @@ yum: state=installed pkg={{ item }} with_items: - kmod-hfsplus - when: is_rhel == 'True' + when: is_rhel is defined - name: enable services and start them on Fedora systems service: name={{ item }} enabled=true state=started diff --git a/tasks/growroot_cloud.yml b/tasks/growroot_cloud.yml index 86c89cf198..4831c2cd6a 100644 --- a/tasks/growroot_cloud.yml +++ b/tasks/growroot_cloud.yml @@ -1,6 +1,6 @@ - name: add infra repo action: get_url url=http://infrastructure.fedoraproject.org/el/infrastructure.repo dest=/etc/yum.repos.d/ - when: is_rhel == 'True' + when: is_rhel is defined tags: - config diff --git a/tasks/serialgetty.yml b/tasks/serialgetty.yml index 5a452f7eb0..2de2ba2faa 100644 --- a/tasks/serialgetty.yml +++ b/tasks/serialgetty.yml @@ -2,6 +2,6 @@ - name: upstart serial setup action: copy src="{{ files }}/common/ttyS0.conf" dest=/etc/init/ttyS0.conf - when: is_rhel == 'True' + when: is_rhel is defined tags: - configs diff --git a/tasks/sign_setup.yml b/tasks/sign_setup.yml index 4a4045167b..151c311d8a 100644 --- a/tasks/sign_setup.yml +++ b/tasks/sign_setup.yml @@ -4,7 +4,7 @@ action: copy src="{{ files }}/sign/{{ item }}" dest="/etc/yum.repos.d/{{ item }}" with_items: - builder-rpms.repo - when: is_rhel == 'True' + when: is_rhel is defined tags: - config - packages