Change all instances of ansible_distribution_major_version to filter to int for comparisons.

This commit is contained in:
Kevin Fenzi 2015-05-27 22:27:39 +00:00
parent 03633c8f0c
commit 275f4b5203
50 changed files with 74 additions and 74 deletions

View file

@ -7,25 +7,25 @@
# If NOT using xinetd
- name: delete stock git daemon config
file: path="/usr/lib/systemd/system/git.service" state=absent
when: ansible_distribution_major_version == '7'
when: ansible_distribution_major_version|int == 7
- name: configure git daemon
template: >
src="git@.service.j2"
dest="/usr/lib/systemd/system/git@.service"
mode=0644
when: ansible_distribution_major_version == '7'
when: ansible_distribution_major_version|int == 7
# If using xinetd
- name: install xinetd
yum: pkg=xinetd state=present
when: ansible_distribution_major_version == '6'
when: ansible_distribution_major_version|int == 6
- name: install the xinetd config file
template: >
src="git.j2"
dest="/etc/xinetd.d/git"
mode=0644
when: ansible_distribution_major_version == '6'
when: ansible_distribution_major_version|int == 6
notify:
- restart xinetd