1234567891011121314151617181920212223242526272829303132333435363738394041 |
- ---
- - name: Install dependencies
- apt:
- pkg: "{{item}}"
- state: present
- with_items:
- - python3-pip
- - name: Install python dependencies
- pip:
- name: "{{ item }}"
- state: present
- executable: pip3
- with_items:
- - psutil
- - netifaces
- - name: create systemd files
- template:
- src: py-respondd.service.j2
- dest: /lib/systemd/system/py-respondd.service
- notify: systemctl reload
- - name: Clone py-respondd repo
- git:
- repo: https://github.com/descilla/py-respondd.git
- dest: /opt/py-respondd/
- clone: yes
- update: yes
- notify: restart respondd
- - name: create config.json files
- template:
- src: config.json.j2
- dest: /opt/py-respondd/config.json
- notify: restart respondd
- - name: enable py-respondd service
- service:
- name: py-respondd.service
- enabled: yes
|