Closed qiaofeng1227 closed 3 years ago
服务器预装依赖...
az vm run-command invoke -g w9group -n rocketchat3.14-UbuntuLTS20.04 --command-id RunShellScript --scripts "curl -o- https://raw.githubusercontent.com/Websoft9/ansible-linux/main/scripts/install.sh | bash" -o json
(0, '{\n "value": [\n {\n "code": "ProvisioningState/succeeded",\n "displayStatus": "Provisioning succeeded",\n "level": "Info",\n "message": "Enable succeeded: \\n[stdout]\\ne_1.8.1-1.3ubuntu1_all.deb ...\\r\\nUnpacking python3-argcomplete (1.8.1-1.3ubuntu1) ...\\r\\nSelecting previously unselected package python3-jmespath.\\r\\nPreparing to unpack .../06-python3-jmespath_0.9.4-2_all.deb ...\\r\\nUnpacking python3-jmespath (0.9.4-2) ...\\r\\nSelecting previously unselected package python3-kerberos.\\r\\nPreparing to unpack .../07-python3-kerberos_1.1.14-3.1build1_amd64.deb ...\\r\\nUnpacking python3-kerberos (1.1.14-3.1build1) ...\\r\\nSelecting previously unselected package python3-lockfile.\\r\\nPreparing to unpack .../08-python3-lockfile_1%3a0.12.2-2ubuntu2_all.deb ...\\r\\nUnpacking python3-lockfile (1:0.12.2-2ubuntu2) ...\\r\\nSelecting previously unselected package python3-libcloud.\\r\\nPreparing to unpack .../09-python3-libcloud_2.8.0-1_all.deb ...\\r\\nUnpacking python3-libcloud (2.8.0-1) ...\\r\\nSelecting previously unselected package python3-ntlm-auth.\\r\\nPreparing to unpack .../10-python3-ntlm-auth_1.1.0-1_all.deb ...\\r\\nUnpacking python3-ntlm-auth (1.1.0-1) ...\\r\\nSelecting previously unselected package python3-requests-kerberos.\\r\\nPreparing to unpack .../11-python3-requests-kerberos_0.12.0-2_all.deb ...\\r\\nUnpacking python3-requests-kerberos (0.12.0-2) ...\\r\\nSelecting previously unselected package python3-requests-ntlm.\\r\\nPreparing to unpack .../12-python3-requests-ntlm_1.1.0-1_all.deb ...\\r\\nUnpacking python3-requests-ntlm (1.1.0-1) ...\\r\\nSelecting previously unselected package python3-selinux.\\r\\nPreparing to unpack .../13-python3-selinux_3.0-1build2_amd64.deb ...\\r\\nUnpacking python3-selinux (3.0-1build2) ...\\r\\nSelecting previously unselected package python3-xmltodict.\\r\\nPreparing to unpack .../14-python3-xmltodict_0.12.0-1_all.deb ...\\r\\nUnpacking python3-xmltodict (0.12.0-1) ...\\r\\nSelecting previously unselected package python3-winrm.\\r\\nPreparing to unpack .../15-python3-winrm_0.3.0-2_all.deb ...\\r\\nUnpacking python3-winrm (0.3.0-2) ...\\r\\nSelecting previously unselected package sshpass.\\r\\nPreparing to unpack .../16-sshpass_1.06-1_amd64.deb ...\\r\\nUnpacking sshpass (1.06-1) ...\\r\\nSetting up python3-lockfile (1:0.12.2-2ubuntu2) ...\\r\\nSetting up python3-ntlm-auth (1.1.0-1) ...\\r\\nSetting up python3-kerberos (1.1.14-3.1build1) ...\\r\\nSetting up sshpass (1.06-1) ...\\r\\nSetting up python3-xmltodict (0.12.0-1) ...\\r\\nSetting up python3-jmespath (0.9.4-2) ...\\r\\n/usr/lib/python3/dist-packages/jmespath/visitor.py:32: SyntaxWarning: \\"is\\" with a literal. Did you mean \\"==\\"?\\r\\n if x is 0 or x is 1:\\r\\n/usr/lib/python3/dist-packages/jmespath/visitor.py:32: SyntaxWarning: \\"is\\" with a literal. Did you mean \\"==\\"?\\r\\n if x is 0 or x is 1:\\r\\n/usr/lib/python3/dist-packages/jmespath/visitor.py:34: SyntaxWarning: \\"is\\" with a literal. Did you mean \\"==\\"?\\r\\n elif y is 0 or y is 1:\\r\\n/usr/lib/python3/dist-packages/jmespath/visitor.py:34: SyntaxWarning: \\"is\\" with a literal. Did you mean \\"==\\"?\\r\\n elif y is 0 or y is 1:\\r\\n/usr/lib/python3/dist-packages/jmespath/visitor.py:260: SyntaxWarning: \\"is\\" with a literal. Did you mean \\"==\\"?\\r\\n if original_result is 0:\\r\\nSetting up python3-requests-kerberos (0.12.0-2) ...\\r\\nSetting up ieee-data (20180805.1) ...\\r\\nSetting up python3-dnspython (1.16.0-1build1) ...\\r\\nSetting up python3-selinux (3.0-1build2) ...\\r\\nSetting up python3-crypto (2.6.1-13ubuntu2) ...\\r\\nSetting up python3-argcomplete (1.8.1-1.3ubuntu1) ...\\r\\nSetting up python3-requests-ntlm (1.1.0-1) ...\\r\\nSetting up python3-libcloud (2.8.0-1) ...\\r\\nSetting up python3-netaddr (0.7.19-3) ...\\r\\n/usr/lib/python3/dist-packages/netaddr/strategy/__init__.py:189: SyntaxWarning: \\"is not\\" with a literal. Did you mean \\"!=\\"?\\r\\n if word_sep is not \'\':\\r\\nSetting up python3-winrm (0.3.0-2) ...\\r\\nSetting up ansible (2.9.6+dfsg-1) ...\\r\\nProcessing triggers for man-db (2.9.1-1) ...\\r\\nCollecting pip\\n Downloading pip-21.1.1-py3-none-any.whl (1.5 MB)\\nInstalling collected packages: pip\\n Attempting uninstall: pip\\n Found existing installation: pip 20.0.2\\n Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr\\n Can\'t uninstall \'pip\'. No files were found to uninstall.\\nSuccessfully installed pip-21.1.1\\npip 21.1.1 from /usr/local/lib/python3.8/dist-packages/pip (python 3.8)\\nPre-installation has beend completed\\n\\n[stderr]\\n % Total % Received % Xferd Average Speed Time Time Time Current\\n Dload Upload Total Spent Left Speed\\n\\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\r100 3408 100 3408 0 0 23666 0 --:--:-- --:--:-- --:--:-- 23666\\nTERM environment variable not set.\\n\\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\\n\\ndebconf: unable to initialize frontend: Dialog\\ndebconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)\\ndebconf: falling back to frontend: Readline\\ndebconf: unable to initialize frontend: Readline\\ndebconf: (This frontend requires a controlling tty.)\\ndebconf: falling back to frontend: Teletype\\ndpkg-preconfigure: unable to re-open stdin: \\n/usr/bin/python2: No module named pip\\n",\n "time": null\n }\n ]\n}')
Execute successfully
OK
服务器预装依赖...
az vm run-command invoke -g w9group -n mariadb10.5-UbuntuLTS20.04 --command-id RunShellScript --scripts "curl -o- https://raw.githubusercontent.com/Websoft9/ansible-linux/main/scripts/install.sh | bash" -o json
(0, '{\n "value": [\n {\n "code": "ProvisioningState/succeeded",\n "displayStatus": "Provisioning succeeded",\n "level": "Info",\n "message": "Enable succeeded: \\n[stdout]\\ne_1.8.1-1.3ubuntu1_all.deb ...\\r\\nUnpacking python3-argcomplete (1.8.1-1.3ubuntu1) ...\\r\\nSelecting previously unselected package python3-jmespath.\\r\\nPreparing to unpack .../06-python3-jmespath_0.9.4-2_all.deb ...\\r\\nUnpacking python3-jmespath (0.9.4-2) ...\\r\\nSelecting previously unselected package python3-kerberos.\\r\\nPreparing to unpack .../07-python3-kerberos_1.1.14-3.1build1_amd64.deb ...\\r\\nUnpacking python3-kerberos (1.1.14-3.1build1) ...\\r\\nSelecting previously unselected package python3-lockfile.\\r\\nPreparing to unpack .../08-python3-lockfile_1%3a0.12.2-2ubuntu2_all.deb ...\\r\\nUnpacking python3-lockfile (1:0.12.2-2ubuntu2) ...\\r\\nSelecting previously unselected package python3-libcloud.\\r\\nPreparing to unpack .../09-python3-libcloud_2.8.0-1_all.deb ...\\r\\nUnpacking python3-libcloud (2.8.0-1) ...\\r\\nSelecting previously unselected package python3-ntlm-auth.\\r\\nPreparing to unpack .../10-python3-ntlm-auth_1.1.0-1_all.deb ...\\r\\nUnpacking python3-ntlm-auth (1.1.0-1) ...\\r\\nSelecting previously unselected package python3-requests-kerberos.\\r\\nPreparing to unpack .../11-python3-requests-kerberos_0.12.0-2_all.deb ...\\r\\nUnpacking python3-requests-kerberos (0.12.0-2) ...\\r\\nSelecting previously unselected package python3-requests-ntlm.\\r\\nPreparing to unpack .../12-python3-requests-ntlm_1.1.0-1_all.deb ...\\r\\nUnpacking python3-requests-ntlm (1.1.0-1) ...\\r\\nSelecting previously unselected package python3-selinux.\\r\\nPreparing to unpack .../13-python3-selinux_3.0-1build2_amd64.deb ...\\r\\nUnpacking python3-selinux (3.0-1build2) ...\\r\\nSelecting previously unselected package python3-xmltodict.\\r\\nPreparing to unpack .../14-python3-xmltodict_0.12.0-1_all.deb ...\\r\\nUnpacking python3-xmltodict (0.12.0-1) ...\\r\\nSelecting previously unselected package python3-winrm.\\r\\nPreparing to unpack .../15-python3-winrm_0.3.0-2_all.deb ...\\r\\nUnpacking python3-winrm (0.3.0-2) ...\\r\\nSelecting previously unselected package sshpass.\\r\\nPreparing to unpack .../16-sshpass_1.06-1_amd64.deb ...\\r\\nUnpacking sshpass (1.06-1) ...\\r\\nSetting up python3-lockfile (1:0.12.2-2ubuntu2) ...\\r\\nSetting up python3-ntlm-auth (1.1.0-1) ...\\r\\nSetting up python3-kerberos (1.1.14-3.1build1) ...\\r\\nSetting up sshpass (1.06-1) ...\\r\\nSetting up python3-xmltodict (0.12.0-1) ...\\r\\nSetting up python3-jmespath (0.9.4-2) ...\\r\\n/usr/lib/python3/dist-packages/jmespath/visitor.py:32: SyntaxWarning: \\"is\\" with a literal. Did you mean \\"==\\"?\\r\\n if x is 0 or x is 1:\\r\\n/usr/lib/python3/dist-packages/jmespath/visitor.py:32: SyntaxWarning: \\"is\\" with a literal. Did you mean \\"==\\"?\\r\\n if x is 0 or x is 1:\\r\\n/usr/lib/python3/dist-packages/jmespath/visitor.py:34: SyntaxWarning: \\"is\\" with a literal. Did you mean \\"==\\"?\\r\\n elif y is 0 or y is 1:\\r\\n/usr/lib/python3/dist-packages/jmespath/visitor.py:34: SyntaxWarning: \\"is\\" with a literal. Did you mean \\"==\\"?\\r\\n elif y is 0 or y is 1:\\r\\n/usr/lib/python3/dist-packages/jmespath/visitor.py:260: SyntaxWarning: \\"is\\" with a literal. Did you mean \\"==\\"?\\r\\n if original_result is 0:\\r\\nSetting up python3-requests-kerberos (0.12.0-2) ...\\r\\nSetting up ieee-data (20180805.1) ...\\r\\nSetting up python3-dnspython (1.16.0-1build1) ...\\r\\nSetting up python3-selinux (3.0-1build2) ...\\r\\nSetting up python3-crypto (2.6.1-13ubuntu2) ...\\r\\nSetting up python3-argcomplete (1.8.1-1.3ubuntu1) ...\\r\\nSetting up python3-requests-ntlm (1.1.0-1) ...\\r\\nSetting up python3-libcloud (2.8.0-1) ...\\r\\nSetting up python3-netaddr (0.7.19-3) ...\\r\\n/usr/lib/python3/dist-packages/netaddr/strategy/__init__.py:189: SyntaxWarning: \\"is not\\" with a literal. Did you mean \\"!=\\"?\\r\\n if word_sep is not \'\':\\r\\nSetting up python3-winrm (0.3.0-2) ...\\r\\nSetting up ansible (2.9.6+dfsg-1) ...\\r\\nProcessing triggers for man-db (2.9.1-1) ...\\r\\nCollecting pip\\n Downloading pip-21.1.1-py3-none-any.whl (1.5 MB)\\nInstalling collected packages: pip\\n Attempting uninstall: pip\\n Found existing installation: pip 20.0.2\\n Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr\\n Can\'t uninstall \'pip\'. No files were found to uninstall.\\nSuccessfully installed pip-21.1.1\\npip 21.1.1 from /usr/local/lib/python3.8/dist-packages/pip (python 3.8)\\nPre-installation has beend completed\\n\\n[stderr]\\n % Total % Received % Xferd Average Speed Time Time Time Current\\n Dload Upload Total Spent Left Speed\\n\\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\\r100 3408 100 3408 0 0 20165 0 --:--:-- --:--:-- --:--:-- 20047\\r100 3408 100 3408 0 0 20165 0 --:--:-- --:--:-- --:--:-- 20047\\nTERM environment variable not set.\\n\\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\\n\\ndebconf: unable to initialize frontend: Dialog\\ndebconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)\\ndebconf: falling back to frontend: Readline\\ndebconf: unable to initialize frontend: Readline\\ndebconf: (This frontend requires a controlling tty.)\\ndebconf: falling back to frontend: Teletype\\ndpkg-preconfigure: unable to re-open stdin: \\n/usr/bin/python2: No module named pip\\n",\n "time": null\n }\n ]\n}')
Execute successfully