I hereby claim:
- I am cyberjso on github.
- I am cyber_jso (https://keybase.io/cyber_jso) on keybase.
- I have a public key whose fingerprint is B539 AD27 32DE F3BF 634C 730C DA54 F33A C13B F8B7
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
apply plugin: 'nebula.ospackage' |
buildscript { | |
repositories { | |
maven { | |
url "https://plugins.gradle.org/m2/" | |
} | |
} | |
dependencies { | |
classpath "com.netflix.nebula:gradle-ospackage-plugin:3+" | |
} | |
} |
task packDeb(type: Deb) { | |
packageName = project.name | |
version = project.version | |
os = LINUX | |
into '/opt/' + project.name | |
from(jar.outputs.files) { | |
into 'lib' | |
} |
--- | |
- hosts: localhost | |
roles: | |
- common | |
- service |
package_name: os-package_1.0-SNAPSHOT_all.deb |
--- | |
- name: send package to target host | |
copy: | |
src={{package_name}} | |
dest=/tmp/{{package_name}} | |
mode=0777 | |
- name: install service package | |
become: true | |
shell: "dpkg -i /tmp/{{package_name}}" |
--- | |
- name: os-package started | |
service: name=os-package state=started |
ansible-pull -U git://github.com/cyberjso/ansible-pull.git |