Answer the question
In order to leave comments, you need to log in
Ansible - I can't install deb - where could I go wrong?
ansible 2.8.6 Running
playbook from ubuntu 18.04 to ubuntu 19.10.
You need to install software from deb packages. The idea is to copy the deb packages locally and install. The files are copied, the owner is root, through sudo ls I see it, but after copying I get an error:
FAILED! => {"changed": false, "msg": "Unable to install package: E:Не удалось открыть файл ['/home/user/1C/1c-enterprise83-common_8.3.13-1865_amd64.deb' - open (2: Нет такого файла или каталога)"}
ls /home/user/1C/ -la
drwxr-xr-x 2 root root 4096 окт 29 11:18 .
drwxr-xr-x 18 user user 4096 окт 29 10:53 ..
-rw-r--r-- 1 root root 155387874 окт 29 10:53 1c-enterprise83-client_8.3.13-1865_amd64.deb
-rw-r--r-- 1 root root 25351370 окт 29 10:53 1c-enterprise83-client-nls_8.3.13-1865_amd64.deb
-rw-r--r-- 1 root root 24529694 окт 29 10:53 1c-enterprise83-common_8.3.13-1865_amd64.deb
-rw-r--r-- 1 root root 7177310 окт 29 10:53 1c-enterprise83-common-nls_8.3.13-1865_amd64.deb
-rw-r--r-- 1 root root 28984 окт 29 10:53 1c-enterprise83-crs_8.3.13-1865_amd64.deb
-rw-r--r-- 1 root root 256112470 окт 29 10:53 1c-enterprise83-server_8.3.13-1865_amd64.deb
-rw-r--r-- 1 root root 83482048 окт 29 10:53 1c-enterprise83-server-nls_8.3.13-1865_amd64.deb
-rw-r--r-- 1 root root 121691344 окт 29 10:53 1c-enterprise83-thin-client_8.3.13-1865_amd64.deb
-rw-r--r-- 1 root root 18857688 окт 29 10:53 1c-enterprise83-thin-client-nls_8.3.13-1865_amd64.deb
-rw-r--r-- 1 root root 229088 окт 29 10:53 1c-enterprise83-ws_8.3.13-1865_amd64.deb
-rw-r--r-- 1 root root 17180 окт 29 10:53 1c-enterprise83-ws-nls_8.3.13-1865_amd64.deb
---
- hosts: new
become: yes
tasks:
- name: copy 1C setups
copy:
src: /home/user/playbook/ubuntu1904-setup/config/1C/
dest: /home/user/1C/
force: yes
- name: install 1C
apt:
deb: "{{ item }}"
vars:
item:
- /home/user/1C/1c-enterprise83-common_8.3.13-1865_amd64.deb
- /home/user/1C/1c-enterprise83-common-nls_8.3.13-1865_amd64.deb
- /home/user/1C/1c-enterprise83-server_8.3.13-1865_amd64.deb
- /home/user/1C/1c-enterprise83-server-nls_8.3.13-1865_amd64.deb
- /home/user/1C/1c-enterprise83-ws_8.3.13-1865_amd64.deb
- /home/user/1C/1c-enterprise83-ws-nls_8.3.13-1865_amd64.deb
- /home/user/1C/1c-enterprise83-crs_8.3.13-1865_amd64.deb
- /home/user/1C/1c-enterprise83-client_8.3.13-1865_amd64.deb
- /home/user/1C/1c-enterprise83-common-nls_8.3.13-1865_amd64.deb
Answer the question
In order to leave comments, you need to log in
and if so:
- name: install 1C
apt:
deb: "{{ item }}"
with_items:
- /home/user/1C/1c-enterprise83-common_8.3.13-1865_amd64.deb
- /home/user/1C/1c-enterprise83-common-nls_8.3.13-1865_amd64.deb
- /home/user/1C/1c-enterprise83-server_8.3.13-1865_amd64.deb
- /home/user/1C/1c-enterprise83-server-nls_8.3.13-1865_amd64.deb
- /home/user/1C/1c-enterprise83-ws_8.3.13-1865_amd64.deb
- /home/user/1C/1c-enterprise83-ws-nls_8.3.13-1865_amd64.deb
- /home/user/1C/1c-enterprise83-crs_8.3.13-1865_amd64.deb
- /home/user/1C/1c-enterprise83-client_8.3.13-1865_amd64.deb
- /home/user/1C/1c-enterprise83-common-nls_8.3.13-1865_amd64.deb
- name: install 1C
apt:
deb: "{{ item }}"
with_fileglob:
- /home/user/1C/*.deb
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question