--- # tasklist for setting up a git server (git:// access) - name: install the git-daemon package yum: pkg=git-daemon state=present # 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 - name: configure git daemon template: > src="git@.service.j2" dest="/usr/lib/systemd/system/git@.service" mode=0644 when: ansible_distribution_major_version|int == 7 # If using xinetd - name: install xinetd yum: pkg=xinetd state=present 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|int == 6 notify: - restart xinetd