add playbook config-repo-vn
This commit is contained in:
parent
0d67084a3f
commit
5673b789d1
|
@ -17,10 +17,10 @@
|
|||
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# Download deb package
|
||||
- name: Download vn-host_2.0.2_all.deb
|
||||
- name: Download vn-host_2.0.2_all.deb package
|
||||
get_url:
|
||||
url: http://apt.verdnatura.es/pool/main/v/vn-host/vn-host_2.0.2_all.deb
|
||||
dest: /tmp/vn-host_2.0.2_all.deb
|
||||
url: "{{ repo_url }}"
|
||||
dest: "{{ path_package }}"
|
||||
mode: '0644'
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
|
@ -28,5 +28,13 @@
|
|||
# Install deb package
|
||||
- name: Install a .deb package
|
||||
apt:
|
||||
deb: /tmp/vn-host_2.0.2_all.deb
|
||||
deb: "{{ path_package }}"
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# Delete deb package file from tmp
|
||||
- name: Delete deb package file from tmp
|
||||
file:
|
||||
path: "{{ path_package }}"
|
||||
state: absent
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
repo_url: http://apt.verdnatura.es/pool/main/v/vn-host/vn-host_2.0.2_all.deb
|
||||
path_package: /tmp/vn-host_2.0.2_all.deb
|
Loading…
Reference in New Issue