1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- ---
- - name: Package cache updated
- shell: pkg update -f
- - name: Dependencies installed
- pkgng:
- name: "git go py37-supervisor"
- state: present
- - name: Source folder exists
- file:
- path: /usr/local/src
- owner: root
- mode: 0755
- state: directory
- - name: Podgrab source deployed
- git:
- repo: "https://github.com/akhilrex/podgrab.git"
- dest: /usr/local/src/podgrab
- accept_hostkey: yes
- update: yes
- - name: Build podgrab binary
- shell:
- chdir: /usr/local/src/podgrab
- cmd: go build .
- - name: Supervisor enabled
- shell: sysrc supervisord_enable="YES"
- - name: Supervisor config file patched
- patch:
- src: supervisord.conf.patch
- dest: /usr/local/etc/supervisord.conf
- notify: Supervisor restarted
- - name: Supervisor file installed
- copy:
- src: supervisor.conf
- dest: /usr/local/etc/supervisor/conf.d/podgrab.conf
- owner: root
- mode: 0644
- notify: Supervisor restarted
|