2023-10-18 07:06:20 +00:00
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
2023-10-18 07:30:39 +00:00
|
|
|
# SE OBVIA , ACTUALMENTE SE INSTALA PACKAGE DEB INSTALA gpg.key + REPOS
|
2023-10-18 07:06:20 +00:00
|
|
|
# descargar http://apt.verdnatura.es/pool/main/v/vn-host/vn-host_2.0.2_all.deb e instalar (manualmente wget + dpkg -i package)
|
|
|
|
# paso0 - añadir clave gpg
|
|
|
|
# paso1 - Add specified repository into sources list
|
|
|
|
#- name: Add specified repository into sources list
|
|
|
|
# apt_repository:
|
|
|
|
# repo: deb http://apt.verdnatura.es/ bookworm main
|
|
|
|
# state: present
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
# paso2 - Add source repository into sources list
|
|
|
|
#- name: Add source repository into sources list
|
|
|
|
# apt_repository:
|
|
|
|
# repo: deb-src http://apt.verdnatura.es/ bookworm main
|
|
|
|
# state: present
|
2023-10-18 07:30:39 +00:00
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
# Download deb package
|
2023-10-18 07:42:08 +00:00
|
|
|
- name: Download vn-host_2.0.2_all.deb package
|
2023-10-18 07:30:39 +00:00
|
|
|
get_url:
|
2023-10-18 07:42:08 +00:00
|
|
|
url: "{{ repo_url }}"
|
|
|
|
dest: "{{ path_package }}"
|
2023-10-18 07:30:39 +00:00
|
|
|
mode: '0644'
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
# Install deb package
|
|
|
|
- name: Install a .deb package
|
|
|
|
apt:
|
2023-10-18 07:42:08 +00:00
|
|
|
deb: "{{ path_package }}"
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
# Delete deb package file from tmp
|
|
|
|
- name: Delete deb package file from tmp
|
|
|
|
file:
|
|
|
|
path: "{{ path_package }}"
|
|
|
|
state: absent
|
2023-10-18 07:06:20 +00:00
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|