add playbook config-repo-vn

This commit is contained in:
Ruben Blanco 2023-10-18 09:42:08 +02:00
parent 0d67084a3f
commit 5673b789d1
2 changed files with 15 additions and 4 deletions

View File

@ -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
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

View File

@ -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