blob: 079a66b53b755346208d62bf3e785750109648b2 (
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
40
41
42
43
44
45
46
47
48
49
|
---
- name: install respondd_poller dependencies
pacman:
name:
- git
- python-virtualenv
- python-setuptools
- python-pip
state: present
- name: create venv
command:
cmd: "python -m venv /opt/respondd_poller/venv"
creates: /opt/respondd_poller/venv
- name: install respondd_poller requirements
copy:
src: requirements.txt
dest: /opt/respondd_poller/requirements.txt
mode: 0644
- name: install respondd_poller script
copy:
src: respondd_poller.py
dest: /opt/respondd_poller/respondd_poller.py
mode: 0644
- name: install requirements
pip:
requirements: /opt/respondd_poller/requirements.txt
virtualenv: /opt/respondd_poller/venv
- name: install respondd_poller config
template:
src: respondd_poller.json.j2
dest: /etc/respondd_poller.json
mode: 0644
- name: create respondd_poller service
copy:
src: respondd_poller.service
dest: /etc/systemd/system/respondd_poller.service
mode: 0644
- name: start and enable respondd_poller service
systemd:
name: respondd_poller
state: started
enabled: yes
|