blob: 4eba5f190e277819bb23405b3605192fbd135a42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
- name: Install fcgiwrap
community.general.apk:
name: fcgiwrap
- name: Configure fcgiwrap daemon
register: fcgiwrap_conf
vars:
fcgiwrap_user: nginx
fcgiwrap_group: nginx
ansible.builtin.template:
src: conf.d/fcgiwrap
dest: /etc/conf.d/fcgiwrap
mode: "644"
- name: Restart fcgiwrap daemon and configure to start on boot
when: fcgiwrap_conf is changed
ansible.builtin.service:
name: fcgiwrap
enabled: true
state: restarted
- name: Start fcgiwrap daemon and configure to start on boot
when: not ( fcgiwrap_conf is changed )
ansible.builtin.service:
name: fcgiwrap
enabled: true
state: started
- name: Install script to update fcgiwrap
ansible.builtin.copy:
src: update_fcgiwrap
dest: /usr/bin/update_fcgiwrap
mode: "755"
- name: Install daily crontab to update fcgiwrap
ansible.builtin.cron:
special_time: daily
name: Update fcgiwrap
job: /usr/bin/update_fcgiwrap
|