mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-01-25 21:40:19 +00:00
adding systemd units for autodeploy the www
This commit is contained in:
@@ -24,3 +24,35 @@
|
|||||||
mode: 0755
|
mode: 0755
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
||||||
|
- name: Add githook local script
|
||||||
|
copy:
|
||||||
|
src: ../files/www-run
|
||||||
|
dest: /usr/local/bin/www-run
|
||||||
|
owner: root
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
|
- name: Add githook systemd path unit
|
||||||
|
copy:
|
||||||
|
src: ../files/www-run.path
|
||||||
|
dest: /etc/systemd/system/www-run.path
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
|
- name: Add githook system service unit
|
||||||
|
copy:
|
||||||
|
src: ../files/www-run.service
|
||||||
|
dest: /etc/systemd/system/www-run.service
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
|
- name: Enabling ansible-pull units
|
||||||
|
systemd:
|
||||||
|
name: "{{ item }}"
|
||||||
|
enabled: yes
|
||||||
|
state: started
|
||||||
|
with_items:
|
||||||
|
- 'www-run.path'
|
||||||
|
- 'www-run.service'
|
||||||
Reference in New Issue
Block a user