|
@@ -3,9 +3,13 @@
|
|
community.general.pkgng:
|
|
community.general.pkgng:
|
|
name: git,go
|
|
name: git,go
|
|
state: latest
|
|
state: latest
|
|
|
|
+ tags:
|
|
|
|
+ - build
|
|
|
|
|
|
- name: Source folder exists
|
|
- name: Source folder exists
|
|
file: path=/usr/local/src mode=0755 state=directory
|
|
file: path=/usr/local/src mode=0755 state=directory
|
|
|
|
+ tags:
|
|
|
|
+ - build
|
|
|
|
|
|
- name: Podgrab source deployed
|
|
- name: Podgrab source deployed
|
|
git:
|
|
git:
|
|
@@ -13,16 +17,34 @@
|
|
dest: /usr/local/src/podgrab
|
|
dest: /usr/local/src/podgrab
|
|
accept_hostkey: yes
|
|
accept_hostkey: yes
|
|
update: yes
|
|
update: yes
|
|
|
|
+ tags:
|
|
|
|
+ - build
|
|
|
|
+
|
|
|
|
+- name: Patch podgrab for jails
|
|
|
|
+ shell:
|
|
|
|
+ cmd: 'sed -i -e ''s/client\/*/\/usr\/local\/src\/podgrab\/client\//'' /usr/local/src/podgrab/main.go'
|
|
|
|
+ warn: false
|
|
|
|
+ tags:
|
|
|
|
+ - build
|
|
|
|
|
|
- name: Build podgrab binary
|
|
- name: Build podgrab binary
|
|
shell:
|
|
shell:
|
|
chdir: /usr/local/src/podgrab
|
|
chdir: /usr/local/src/podgrab
|
|
cmd: go build .
|
|
cmd: go build .
|
|
|
|
+ tags:
|
|
|
|
+ - build
|
|
|
|
+
|
|
|
|
+- name: Podgrab rc file installed
|
|
|
|
+ ansible.builtin.copy:
|
|
|
|
+ src: podgrab.rc
|
|
|
|
+ dest: /usr/local/etc/rc.d/podgrab
|
|
|
|
+
|
|
|
|
+- name: Podgrab enabled
|
|
|
|
+ shell: sysrc podgrab_enable="YES"
|
|
|
|
|
|
-- name: Supervisor file installed
|
|
|
|
- copy:
|
|
|
|
- src: supervisor.conf
|
|
|
|
- dest: /usr/local/etc/supervisor/conf.d/podgrab.conf
|
|
|
|
- owner: root
|
|
|
|
- mode: 0644
|
|
|
|
- notify: Supervisor restarted
|
|
|
|
|
|
+- name: Install podgrab
|
|
|
|
+ ansible.builtin.copy:
|
|
|
|
+ src: /usr/local/src/podgrab/podgrab
|
|
|
|
+ dest: /usr/local/bin/podgrab
|
|
|
|
+ remote_src: yes
|
|
|
|
+ notify: Podgrab restarted
|