add playbook config-repo-vn
This commit is contained in:
parent
0d67084a3f
commit
5673b789d1
|
@ -17,10 +17,10 @@
|
||||||
|
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
# Download deb package
|
# Download deb package
|
||||||
- name: Download vn-host_2.0.2_all.deb
|
- name: Download vn-host_2.0.2_all.deb package
|
||||||
get_url:
|
get_url:
|
||||||
url: http://apt.verdnatura.es/pool/main/v/vn-host/vn-host_2.0.2_all.deb
|
url: "{{ repo_url }}"
|
||||||
dest: /tmp/vn-host_2.0.2_all.deb
|
dest: "{{ path_package }}"
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
|
@ -28,5 +28,13 @@
|
||||||
# Install deb package
|
# Install deb package
|
||||||
- name: Install a .deb package
|
- name: Install a .deb package
|
||||||
apt:
|
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