I can’t install foreman-ansible-core that is require to run job template Ansible, an error don’t let me install the plugin :
root@cfastdocker:/home/cfast# apt-get install ruby-foreman-ansible-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
ruby-foreman-ansible-core
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,104 B of archives.
After this operation, 36.9 kB of additional disk space will be used.
Get:1 http://deb.theforeman.org stretch/1.21 amd64 ruby-foreman-ansible-core all 2.2.0-1 [6,104 B]
Fetched 6,104 B in 0s (20.5 kB/s)
Selecting previously unselected package ruby-foreman-ansible-core.
(Reading database ... 83257 files and directories currently installed.)
Preparing to unpack .../ruby-foreman-ansible-core_2.2.0-1_all.deb ...
Unpacking ruby-foreman-ansible-core (2.2.0-1) ...
dpkg: error processing archive /var/cache/apt/archives/ruby-foreman-ansible-core_2.2.0-1_all.deb (--unpack):
trying to overwrite '/usr/bin/json_inventory.sh', which is also in package ruby-smart-proxy-ansible 2.1.2-1
Errors were encountered while processing:
/var/cache/apt/archives/ruby-foreman-ansible-core_2.2.0-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
He want to overwrite on a file ‘/usr/bin/json_inventory.sh’ which is also in package ruby-smart-proxy-ansible 2.1.2-1
What can i do ? Because when i force the overwritting with :
dpkg -i --force-overwrite /var/cache/apt/archives/ruby-foreman-ansible-core_2.2.0-1_all.deb
New errors appear during run of Ansible commands from Foreman interface
1:
[WARNING]: Unable to parse /usr/lib/ruby/bin/json_inventory.sh as an inventory
2:
source
3:
[WARNING]: No inventory was parsed, only implicit localhost is available
4:
[WARNING]: provided hosts list is empty, only localhost is available. Note
5:
that the implicit localhost does not match 'all'
6:
7:
PLAY [all] *********************************************************************
8:
skipping: no hosts matched
9:
10:
PLAY RECAP *********************************************************************
11:
12:
13:
PLAY [all] *********************************************************************
14:
skipping: no hosts matched
15:
16:
PLAY RECAP *********************************************************************
17:
18:
Statut de sortie : 0
Version
foreman-tasks 0.14.5
foreman_ansible 2.3.3
foreman_execution 1.7.0
Ansible 2.7.10
smart_proxy 1.21.2