Update this to use 'is defined'

This commit is contained in:
Kevin Fenzi 2014-03-04 18:47:58 +00:00
parent 8426c1d603
commit f927b0d907
5 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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