ansible: change when conditions to use == instead of is when checking strings.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
e4222545c1
commit
81fb4582e7
33 changed files with 135 additions and 135 deletions
|
@ -8,12 +8,12 @@
|
|||
# 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|int >= 7 and ansible_distribution is 'RedHat'
|
||||
when: ansible_distribution_major_version|int >= 7 and ansible_distribution == 'RedHat'
|
||||
tags: git/server
|
||||
|
||||
- name: delete stock git daemon config
|
||||
file: path="/usr/lib/systemd/system/git.service" state=absent
|
||||
when: ansible_distribution_major_version|int >= 29 and ansible_distribution is 'Fedora'
|
||||
when: ansible_distribution_major_version|int >= 29 and ansible_distribution == 'Fedora'
|
||||
tags: git/server
|
||||
|
||||
- name: configure git daemon
|
||||
|
@ -21,7 +21,7 @@
|
|||
src="git@.service.j2"
|
||||
dest="/usr/lib/systemd/system/git@.service"
|
||||
mode=0644
|
||||
when: ansible_distribution_major_version|int >= 7 and ansible_distribution is 'RedHat'
|
||||
when: ansible_distribution_major_version|int >= 7 and ansible_distribution == 'RedHat'
|
||||
tags: git/server
|
||||
|
||||
- name: configure git daemon
|
||||
|
@ -29,13 +29,13 @@
|
|||
src="git@.service.j2"
|
||||
dest="/usr/lib/systemd/system/git@.service"
|
||||
mode=0644
|
||||
when: ansible_distribution_major_version|int >= 29 and ansible_distribution is 'Fedora'
|
||||
when: ansible_distribution_major_version|int >= 29 and ansible_distribution == 'Fedora'
|
||||
tags: git/server
|
||||
|
||||
# If using xinetd
|
||||
- name: install xinetd
|
||||
package: name=xinetd state=present
|
||||
when: ansible_distribution_major_version|int == 6 and ansible_distribution is 'RedHat'
|
||||
when: ansible_distribution_major_version|int == 6 and ansible_distribution == 'RedHat'
|
||||
tags: git/server
|
||||
|
||||
- name: install the xinetd config file
|
||||
|
@ -43,7 +43,7 @@
|
|||
src="git.j2"
|
||||
dest="/etc/xinetd.d/git"
|
||||
mode=0644
|
||||
when: ansible_distribution_major_version|int == 6 and ansible_distribution is 'RedHat'
|
||||
when: ansible_distribution_major_version|int == 6 and ansible_distribution == 'RedHat'
|
||||
tags: git/server
|
||||
notify:
|
||||
- restart xinetd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue