Got the below error when try to run the Ansible Playbook.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
failed: [localhost] => {"failed": true, "item": ""}
stderr: E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
stdout: Reading package lists...
Building dependency tree...
Reading state information...
nginx is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
nginx : Depends: nginx-full but it is not going to be installed or
nginx-light but it is not going to be installed
msg: 'apt-get install 'nginx' ' failed: E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/root/edx_sandbox.retry
localhost : ok=25 changed=0 unreachable=0 failed=1
root@u17784008:/var/tmp/configuration/playbooks# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-image-3.11.0-19-generic linux-headers-3.11.0-19 linux-headers-3.11.0-19-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
nginx-common nginx-full
The following NEW packages will be installed:
nginx-common nginx-full
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 0 B/396 kB of archives.
After this operation, 1,141 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 181172 files and directories currently installed.)
Unpacking nginx-common (from .../nginx-common_1.1.19-1ubuntu0.6_all.deb) ...
dpkg: error processing /var/cache/apt/archives/nginx-common_1.1.19-1ubuntu0.6_all.deb (--unpack):
trying to overwrite '/usr/share/man/man1/nginx.1.gz', which is also in package sw-nginx 1.6.0-1.14051516.ubuntu1204
Unpacking nginx-full (from .../nginx-full_1.1.19-1ubuntu0.6_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/nginx-full_1.1.19-1ubuntu0.6_amd64.deb (--unpack):
trying to overwrite '/usr/sbin/nginx', which is also in package sw-nginx 1.6.0-1.14051516.ubuntu1204
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/nginx-common_1.1.19-1ubuntu0.6_all.deb
/var/cache/apt/archives/nginx-full_1.1.19-1ubuntu0.6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Installed Plesk panel.
Let me know, if you required any more details.
Awaiting for your earliest reply.