- name: "[CONFIG REPO VN] Comprobando si es necesario configurar repositorios" meta: end_host when: repo_vn_enabled is not defined or not repo_vn_enabled #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # 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 #- 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 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Download deb package - name: Download vn-host_2.0.2_all.deb package get_url: url: "{{ repo_url }}" dest: "{{ path_package }}" mode: '0644' #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Install deb package - name: Install a .deb package apt: deb: "{{ path_package }}" #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Delete deb package file from tmp - name: Delete deb package file from tmp file: path: "{{ path_package }}" state: absent #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++