Advertisement
Guest User

Ansible error

a guest
Jul 6th, 2023
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.59 KB | None | 0 0
  1. ian@TILT-JSZVPL3:~/lemmy-ansible$ ansible-playbook -i inventory/hosts lemmy.yml --become --ask-pass --ask-become-pass
  2. SSH password:
  3. BECOME password[defaults to SSH password]:
  4.  
  5. PLAY [all] *************************************************************************************************************
  6.  
  7. TASK [check lemmy_base_dir] ********************************************************************************************
  8. skipping: [[email protected]]
  9.  
  10. TASK [install python for Ansible] **************************************************************************************
  11. fatal: [[email protected]]: FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 100, "stderr": "Shared connection to 188.227.106.154 closed.\r\n", "stderr_lines": ["Shared connection to 188.227.106.154 closed."], "stdout": "\u001b[33m\r0% [Working]\u001b[0m\r \rHit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease\r\n\u001b[33m\r0% [Waiting for headers]\u001b[0m\r \rHit:2 http://archive.ubuntu.com/ubuntu jammy InRelease\r\n\u001b[33m\r0% [Waiting for headers]\u001b[0m\r \rHit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease\r\n\u001b[33m\r0% [Waiting for headers]\u001b[0m\r \rHit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease\r\n\u001b[33m\r \r0% [Working]\u001b[0m\u001b[33m\r0% [Working]\u001b[0m\u001b[33m\r0% [Working]\u001b[0m\u001b[33m\r0% [Working]\u001b[0m\u001b[33m\r20% [Working]\u001b[0m\r \r\rReading package lists... 0%\r\rReading package lists... 0%\r\rReading package lists... 0%\r\rReading package lists... 4%\r\rReading package lists... 4%\r\rReading package lists... 6%\r\rReading package lists... 6%\r\rReading package lists... 7%\r\rReading package lists... 7%\r\rReading package lists... 7%\r\rReading package lists... 7%\r\rReading package lists... 48%\r\rReading package lists... 52%\r\rReading package lists... 52%\r\rReading package lists... 73%\r\rReading package lists... 73%\r\rReading package lists... 74%\r\rReading package lists... 74%\r\rReading package lists... 74%\r\rReading package lists... 74%\r\rReading package lists... 77%\r\rReading package lists... 77%\r\rReading package lists... 79%\r\rReading package lists... 79%\r\rReading package lists... 81%\r\rReading package lists... 81%\r\rReading package lists... 82%\r\rReading package lists... 82%\r\rReading package lists... 86%\r\rReading package lists... 86%\r\rReading package lists... 87%\r\rReading package lists... 87%\r\rReading package lists... 87%\r\rReading package lists... 87%\r\rReading package lists... 88%\r\rReading package lists... 88%\r\rReading package lists... 88%\r\rReading package lists... 88%\r\rReading package lists... 88%\r\rReading package lists... 88%\r\rReading package lists... 88%\r\rReading package lists... 88%\r\rReading package lists... 88%\r\rReading package lists... 88%\r\rReading package lists... 90%\r\rReading package lists... 90%\r\rReading package lists... 91%\r\rReading package lists... 91%\r\rReading package lists... 93%\r\rReading package lists... 93%\r\rReading package lists... 94%\r\rReading package lists... 94%\r\rReading package lists... 98%\r\rReading package lists... 98%\r\rReading package lists... 99%\r\rReading package lists... 99%\r\rReading package lists... 99%\r\rReading package lists... 99%\r\rReading package lists... 99%\r\rReading package lists... 99%\r\rReading package lists... Done\r\r\n\rBuilding dependency tree... 0%\r\rBuilding dependency tree... 0%\r\rBuilding dependency tree... 0%\r\rBuilding dependency tree... 50%\r\rBuilding dependency tree... 50%\r\rBuilding dependency tree... Done\r\r\n\rReading state information... 0% \r\rReading state information... 0%\r\rReading state information... Done\r\r\n83 packages can be upgraded. Run 'apt list --upgradable' to see them.\r\n\rReading package lists... 0%\r\rReading package lists... 100%\r\rReading package lists... Done\r\r\n\rBuilding dependency tree... 0%\r\rBuilding dependency tree... 0%\r\rBuilding dependency tree... 50%\r\rBuilding dependency tree... 50%\r\rBuilding dependency tree... Done\r\r\n\rReading state information... 0% \r\rReading state information... 0%\r\rReading state information... Done\r\r\npython3-minimal is already the newest version (3.10.6-1~22.04).\r\npython3-setuptools is already the newest version (59.6.0-1.2ubuntu0.22.04.1).\r\n0 upgraded, 0 newly installed, 0 to remove and 83 not upgraded.\r\n3 not fully installed or removed.\r\nAfter this operation, 0 B of additional disk space will be used.\r\nSetting up nginx-core (1.18.0-6ubuntu14.3) ...\r\nJob for nginx.service failed because the control process exited with error code.\r\nSee \"systemctl status nginx.service\" and \"journalctl -xeu nginx.service\" for details.\r\ninvoke-rc.d: initscript nginx, action \"start\" failed.\r\n\u001b[0;1;31m×\u001b[0m nginx.service - A high performance web server and a reverse proxy server\r\n Loaded: loaded (\u001b]8;;file://LemmyServer3/lib/systemd/system/nginx.service\u0007/lib/systemd/system/nginx.service\u001b]8;;\u0007; enabled; vendor preset: enabled)\r\n Active: \u001b[0;1;31mfailed\u001b[0m (Result: exit-code) since Thu 2023-07-06 21:22:40 UTC; 10ms ago\r\n Docs: \u001b]8;;man:nginx(8)\u0007man:nginx(8)\u001b]8;;\u0007\r\n Process: 10831 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; \u001b[0;1;31m(code=exited, status=1/FAILURE)\u001b[0m\r\n CPU: 13ms\r\n\r\nJul 06 21:22:40 LemmyServer3 systemd[1]: Starting A high performance web server and a reverse proxy server...\r\nJul 06 21:22:40 LemmyServer3 nginx[10831]: nginx: [emerg] socket() [::]:80 failed (97: Unknown error)\r\nJul 06 21:22:40 LemmyServer3 nginx[10831]: nginx: configuration file /etc/nginx/nginx.conf test failed\r\nJul 06 21:22:40 LemmyServer3 systemd[1]: \u001b[0;1;39m\u001b[0;1;31m\u001b[0;1;39mnginx.service: Control process exited, code=exited, status=1/FAILURE\u001b[0m\r\nJul 06 21:22:40 LemmyServer3 systemd[1]: \u001b[0;1;38;5;185m\u001b[0;1;39m\u001b[0;1;38;5;185mnginx.service: Failed with result 'exit-code'.\u001b[0m\r\nJul 06 21:22:40 LemmyServer3 systemd[1]: \u001b[0;1;31m\u001b[0;1;39m\u001b[0;1;31mFailed to start A high performance web server and a reverse proxy server.\u001b[0m\r\n\u001b[1mdpkg:\u001b[0m error processing package nginx-core (--configure):\r\n installed nginx-core package post-installation script subprocess returned error exit status 1\r\n\u001b[1mdpkg:\u001b[0m dependency problems prevent configuration of nginx:\r\n nginx depends on nginx-core (<< 1.18.0-6ubuntu14.3.1~) | nginx-full (<< 1.18.0-6ubuntu14.3.1~) | nginx-light (<< 1.18.0-6ubuntu14.3.1~) | nginx-extras (<< 1.18.0-6ubuntu14.3.1~); however:\r\n Package nginx-core is not configured yet.\r\n Package nginx-full is not installed.\r\n Package nginx-light is not installed.\r\n Package nginx-extras is not installed.\r\n nginx depends on nginx-core (>= 1.18.0-6ubuntu14.3) | nginx-full (>= 1.18.0-6ubuntu14.3) | nginx-light (>= 1.18.0-6ubuntu14.3) | nginx-extras (>= 1.18.0-6ubuntu14.3); however:\r\n Package nginx-core is not configured yet.\r\n Package nginx-full is not installed.\r\n Package nginx-light is not installed.\r\n Package nginx-extras is not installed.\r\n\r\n\u001b[1mdpkg:\u001b[0m error processing package nginx (--configure):\r\n dependency problems - leaving unconfigured\r\n\u001b[1mdpkg:\u001b[0m dependency problems prevent configuration of python3-certbot-nginx:\r\n python3-certbot-nginx depends on nginx; however:\r\n Package nginx is not configured yet.\r\n Package nginx-core which provides nginx is not configured yet.\r\n\r\n\u001b[1mdpkg:\u001b[0m error processing package python3-certbot-nginx (--configure):\r\n dependency problems - leaving unconfigured\r\nErrors were encountered while processing:\r\n nginx-core\r\n nginx\r\n python3-certbot-nginx\r\nneedrestart is being skipped since dpkg has failed\r\n\u001b[1;31mE: \u001b[0mSub-process /usr/bin/dpkg returned an error code (1)\u001b[0m\r\n", "stdout_lines": ["\u001b[33m", "0% [Working]\u001b[0m", " ", "Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease", "\u001b[33m", "0% [Waiting for headers]\u001b[0m", " ", "Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease", "\u001b[33m", "0% [Waiting for headers]\u001b[0m", " ", "Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease", "\u001b[33m", "0% [Waiting for headers]\u001b[0m", " ", "Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease", "\u001b[33m", " ", "0% [Working]\u001b[0m\u001b[33m", "0% [Working]\u001b[0m\u001b[33m", "0% [Working]\u001b[0m\u001b[33m", "0% [Working]\u001b[0m\u001b[33m", "20% [Working]\u001b[0m", " ", "", "Reading package lists... 0%", "", "Reading package lists... 0%", "", "Reading package lists... 0%", "", "Reading package lists... 4%", "", "Reading package lists... 4%", "", "Reading package lists... 6%", "", "Reading package lists... 6%", "", "Reading package lists... 7%", "", "Reading package lists... 7%", "", "Reading package lists... 7%", "", "Reading package lists... 7%", "", "Reading package lists... 48%", "", "Reading package lists... 52%", "", "Reading package lists... 52%", "", "Reading package lists... 73%", "", "Reading package lists... 73%", "", "Reading package lists... 74%", "", "Reading package lists... 74%", "", "Reading package lists... 74%", "", "Reading package lists... 74%", "", "Reading package lists... 77%", "", "Reading package lists... 77%", "", "Reading package lists... 79%", "", "Reading package lists... 79%", "", "Reading package lists... 81%", "", "Reading package lists... 81%", "", "Reading package lists... 82%", "", "Reading package lists... 82%", "", "Reading package lists... 86%", "", "Reading package lists... 86%", "", "Reading package lists... 87%", "", "Reading package lists... 87%", "", "Reading package lists... 87%", "", "Reading package lists... 87%", "", "Reading package lists... 88%", "", "Reading package lists... 88%", "", "Reading package lists... 88%", "", "Reading package lists... 88%", "", "Reading package lists... 88%", "", "Reading package lists... 88%", "", "Reading package lists... 88%", "", "Reading package lists... 88%", "", "Reading package lists... 88%", "", "Reading package lists... 88%", "", "Reading package lists... 90%", "", "Reading package lists... 90%", "", "Reading package lists... 91%", "", "Reading package lists... 91%", "", "Reading package lists... 93%", "", "Reading package lists... 93%", "", "Reading package lists... 94%", "", "Reading package lists... 94%", "", "Reading package lists... 98%", "", "Reading package lists... 98%", "", "Reading package lists... 99%", "", "Reading package lists... 99%", "", "Reading package lists... 99%", "", "Reading package lists... 99%", "", "Reading package lists... 99%", "", "Reading package lists... 99%", "", "Reading package lists... Done", "", "", "Building dependency tree... 0%", "", "Building dependency tree... 0%", "", "Building dependency tree... 0%", "", "Building dependency tree... 50%", "", "Building dependency tree... 50%", "", "Building dependency tree... Done", "", "", "Reading state information... 0% ", "", "Reading state information... 0%", "", "Reading state information... Done", "", "83 packages can be upgraded. Run 'apt list --upgradable' to see them.", "", "Reading package lists... 0%", "", "Reading package lists... 100%", "", "Reading package lists... Done", "", "", "Building dependency tree... 0%", "", "Building dependency tree... 0%", "", "Building dependency tree... 50%", "", "Building dependency tree... 50%", "", "Building dependency tree... Done", "", "", "Reading state information... 0% ", "", "Reading state information... 0%", "", "Reading state information... Done", "", "python3-minimal is already the newest version (3.10.6-1~22.04).", "python3-setuptools is already the newest version (59.6.0-1.2ubuntu0.22.04.1).", "0 upgraded, 0 newly installed, 0 to remove and 83 not upgraded.", "3 not fully installed or removed.", "After this operation, 0 B of additional disk space will be used.", "Setting up nginx-core (1.18.0-6ubuntu14.3) ...", "Job for nginx.service failed because the control process exited with error code.", "See \"systemctl status nginx.service\" and \"journalctl -xeu nginx.service\" for details.", "invoke-rc.d: initscript nginx, action \"start\" failed.", "\u001b[0;1;31m×\u001b[0m nginx.service - A high performance web server and a reverse proxy server", " Loaded: loaded (\u001b]8;;file://LemmyServer3/lib/systemd/system/nginx.service\u0007/lib/systemd/system/nginx.service\u001b]8;;\u0007; enabled; vendor preset: enabled)", " Active: \u001b[0;1;31mfailed\u001b[0m (Result: exit-code) since Thu 2023-07-06 21:22:40 UTC; 10ms ago", " Docs: \u001b]8;;man:nginx(8)\u0007man:nginx(8)\u001b]8;;\u0007", " Process: 10831 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; \u001b[0;1;31m(code=exited, status=1/FAILURE)\u001b[0m", " CPU: 13ms", "", "Jul 06 21:22:40 LemmyServer3 systemd[1]: Starting A high performance web server and a reverse proxy server...", "Jul 06 21:22:40 LemmyServer3 nginx[10831]: nginx: [emerg] socket() [::]:80 failed (97: Unknown error)", "Jul 06 21:22:40 LemmyServer3 nginx[10831]: nginx: configuration file /etc/nginx/nginx.conf test failed", "Jul 06 21:22:40 LemmyServer3 systemd[1]: \u001b[0;1;39m\u001b[0;1;31m\u001b[0;1;39mnginx.service: Control process exited, code=exited, status=1/FAILURE\u001b[0m", "Jul 06 21:22:40 LemmyServer3 systemd[1]: \u001b[0;1;38;5;185m\u001b[0;1;39m\u001b[0;1;38;5;185mnginx.service: Failed with result 'exit-code'.\u001b[0m", "Jul 06 21:22:40 LemmyServer3 systemd[1]: \u001b[0;1;31m\u001b[0;1;39m\u001b[0;1;31mFailed to start A high performance web server and a reverse proxy server.\u001b[0m", "\u001b[1mdpkg:\u001b[0m error processing package nginx-core (--configure):", " installed nginx-core package post-installation script subprocess returned error exit status 1", "\u001b[1mdpkg:\u001b[0m dependency problems prevent configuration of nginx:", " nginx depends on nginx-core (<< 1.18.0-6ubuntu14.3.1~) | nginx-full (<< 1.18.0-6ubuntu14.3.1~) | nginx-light (<< 1.18.0-6ubuntu14.3.1~) | nginx-extras (<< 1.18.0-6ubuntu14.3.1~); however:", " Package nginx-core is not configured yet.", " Package nginx-full is not installed.", " Package nginx-light is not installed.", " Package nginx-extras is not installed.", " nginx depends on nginx-core (>= 1.18.0-6ubuntu14.3) | nginx-full (>= 1.18.0-6ubuntu14.3) | nginx-light (>= 1.18.0-6ubuntu14.3) | nginx-extras (>= 1.18.0-6ubuntu14.3); however:", " Package nginx-core is not configured yet.", " Package nginx-full is not installed.", " Package nginx-light is not installed.", " Package nginx-extras is not installed.", "", "\u001b[1mdpkg:\u001b[0m error processing package nginx (--configure):", " dependency problems - leaving unconfigured", "\u001b[1mdpkg:\u001b[0m dependency problems prevent configuration of python3-certbot-nginx:", " python3-certbot-nginx depends on nginx; however:", " Package nginx is not configured yet.", " Package nginx-core which provides nginx is not configured yet.", "", "\u001b[1mdpkg:\u001b[0m error processing package python3-certbot-nginx (--configure):", " dependency problems - leaving unconfigured", "Errors were encountered while processing:", " nginx-core", " nginx", " python3-certbot-nginx", "needrestart is being skipped since dpkg has failed", "\u001b[1;31mE: \u001b[0mSub-process /usr/bin/dpkg returned an error code (1)\u001b[0m"]}
  12.  
  13. PLAY RECAP *************************************************************************************************************
  14. [email protected] : ok=0 changed=0 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement