Tags for this role.
This commit is contained in:
parent
9ffcd0a1ef
commit
549c7d655b
1 changed files with 5 additions and 0 deletions
|
@ -3,11 +3,13 @@
|
||||||
|
|
||||||
- name: install the git-daemon package
|
- name: install the git-daemon package
|
||||||
yum: pkg=git-daemon state=present
|
yum: pkg=git-daemon state=present
|
||||||
|
tags: git/server
|
||||||
|
|
||||||
# If NOT using xinetd
|
# If NOT using xinetd
|
||||||
- name: delete stock git daemon config
|
- name: delete stock git daemon config
|
||||||
file: path="/usr/lib/systemd/system/git.service" state=absent
|
file: path="/usr/lib/systemd/system/git.service" state=absent
|
||||||
when: ansible_distribution_major_version|int == 7
|
when: ansible_distribution_major_version|int == 7
|
||||||
|
tags: git/server
|
||||||
|
|
||||||
- name: configure git daemon
|
- name: configure git daemon
|
||||||
template: >
|
template: >
|
||||||
|
@ -15,11 +17,13 @@
|
||||||
dest="/usr/lib/systemd/system/git@.service"
|
dest="/usr/lib/systemd/system/git@.service"
|
||||||
mode=0644
|
mode=0644
|
||||||
when: ansible_distribution_major_version|int == 7
|
when: ansible_distribution_major_version|int == 7
|
||||||
|
tags: git/server
|
||||||
|
|
||||||
# If using xinetd
|
# If using xinetd
|
||||||
- name: install xinetd
|
- name: install xinetd
|
||||||
yum: pkg=xinetd state=present
|
yum: pkg=xinetd state=present
|
||||||
when: ansible_distribution_major_version|int == 6
|
when: ansible_distribution_major_version|int == 6
|
||||||
|
tags: git/server
|
||||||
|
|
||||||
- name: install the xinetd config file
|
- name: install the xinetd config file
|
||||||
template: >
|
template: >
|
||||||
|
@ -27,5 +31,6 @@
|
||||||
dest="/etc/xinetd.d/git"
|
dest="/etc/xinetd.d/git"
|
||||||
mode=0644
|
mode=0644
|
||||||
when: ansible_distribution_major_version|int == 6
|
when: ansible_distribution_major_version|int == 6
|
||||||
|
tags: git/server
|
||||||
notify:
|
notify:
|
||||||
- restart xinetd
|
- restart xinetd
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue