From 0d67084a3f3151e266e56fe910573f7eb1f47aa3 Mon Sep 17 00:00:00 2001 From: rubenb Date: Wed, 18 Oct 2023 09:30:39 +0200 Subject: [PATCH] update playbook config-repo-vn --- .../{add-repos-vn.yaml => config-repo-vn.yaml} | 2 +- .../roles/config-repo-vn/tasks/main.yaml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) rename linux/base-config-debian/{add-repos-vn.yaml => config-repo-vn.yaml} (68%) diff --git a/linux/base-config-debian/add-repos-vn.yaml b/linux/base-config-debian/config-repo-vn.yaml similarity index 68% rename from linux/base-config-debian/add-repos-vn.yaml rename to linux/base-config-debian/config-repo-vn.yaml index 1a1608d..dda8afd 100644 --- a/linux/base-config-debian/add-repos-vn.yaml +++ b/linux/base-config-debian/config-repo-vn.yaml @@ -9,4 +9,4 @@ - name: "example" handlers: - - include_tasks: roles/add-repos-vn/handlers/main.yaml \ No newline at end of file + - include_tasks: roles/config-repo-vn/handlers/main.yaml \ No newline at end of file diff --git a/linux/base-config-debian/roles/config-repo-vn/tasks/main.yaml b/linux/base-config-debian/roles/config-repo-vn/tasks/main.yaml index 3b481ef..af72208 100644 --- a/linux/base-config-debian/roles/config-repo-vn/tasks/main.yaml +++ b/linux/base-config-debian/roles/config-repo-vn/tasks/main.yaml @@ -1,4 +1,5 @@ #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# SE OBVIA , ACTUALMENTE SE INSTALA PACKAGE DEB INSTALA gpg.key + REPOS # 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 @@ -12,4 +13,20 @@ # apt_repository: # repo: deb-src http://apt.verdnatura.es/ bookworm main # state: present +#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Download deb package +- name: Download vn-host_2.0.2_all.deb + 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 + mode: '0644' +#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Install deb package +- name: Install a .deb package + apt: + deb: /tmp/vn-host_2.0.2_all.deb #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ \ No newline at end of file