Closed luanluciano93 closed 2 years ago
I removed it from local.yml:
Log:
root@vps36928:# apt install -y -q python-simplejson git-core ansible Reading package lists... Building dependency tree... Reading state information... git is already the newest version (1:2.25.1-1ubuntu3.2). git set to manually installed. The following packages were automatically installed and are no longer required: linux-headers-5.4.0-91 linux-headers-5.4.0-91-generic linux-image-5.4.0-91-generic linux-modules-5.4.0-91-generic linux-modules-extra-5.4.0-91-generic Use 'apt autoremove' to remove them. The following additional packages will be installed: ieee-data libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib python2 python2-minimal python2.7 python2.7-minimal python3-argcomplete python3-crypto python3-dnspython python3-jmespath python3-kerberos python3-libcloud python3-lockfile python3-netaddr python3-ntlm-auth python3-requests-kerberos python3-requests-ntlm python3-selinux python3-winrm python3-xmltodict Suggested packages: cowsay sshpass python2-doc python-tk python2.7-doc binutils binfmt-support python-lockfile-doc ipython3 python-netaddr-docs The following NEW packages will be installed: ansible ieee-data libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib python-simplejson python2 python2-minimal python2.7 python2.7-minimal python3-argcomplete python3-crypto python3-dnspython python3-jmespath python3-kerberos python3-libcloud python3-lockfile python3-netaddr python3-ntlm-auth python3-requests-kerberos python3-requests-ntlm python3-selinux python3-winrm python3-xmltodict 0 upgraded, 24 newly installed, 0 to remove and 0 not upgraded. Need to get 13.5 MB of archives. After this operation, 107 MB of additional disk space will be used. Get:1 http://ubuntu-archive.locaweb.com.br/ubuntu focal-updates/universe amd64 libpython2.7-minimal amd64 2.7.18-120.04.1 [335 kB] Get:2 http://ubuntu-archive.locaweb.com.br/ubuntu focal-updates/universe amd64 python2.7-minimal amd64 2.7.18-120.04.1 [1,285 kB] Get:3 http://ubuntu-archive.locaweb.com.br/ubuntu focal/universe amd64 python2-minimal amd64 2.7.17-2ubuntu4 [27.5 kB] Get:4 http://ubuntu-archive.locaweb.com.br/ubuntu focal-updates/universe amd64 libpython2.7-stdlib amd64 2.7.18-120.04.1 [1,887 kB] Get:5 http://ubuntu-archive.locaweb.com.br/ubuntu focal-updates/universe amd64 python2.7 amd64 2.7.18-120.04.1 [248 kB] Get:6 http://ubuntu-archive.locaweb.com.br/ubuntu focal/universe amd64 libpython2-stdlib amd64 2.7.17-2ubuntu4 [7,072 B] Get:7 http://ubuntu-archive.locaweb.com.br/ubuntu focal/universe amd64 python2 amd64 2.7.17-2ubuntu4 [26.5 kB] Get:8 http://ubuntu-archive.locaweb.com.br/ubuntu focal/main amd64 python3-crypto amd64 2.6.1-13ubuntu2 [237 kB] Get:9 http://ubuntu-archive.locaweb.com.br/ubuntu focal/main amd64 python3-dnspython all 1.16.0-1Password: 0.7.19-3ubuntu1) Login incorrect vps36928 login: ... Selecting previously unselected package ansible. Preparing to unpack .../05-ansible_2.9.6+dfsg-1_all.deb ... Unpacking ansible (2.9.6+dfsg-1) ... Selecting previously unselected package python-simplejson. Preparing to unpack .../06-python-simplejson_3.16.0-2ubuntu2_amd64.deb ... Unpacking python-simplejson (3.16.0-2ubuntu2) ... Selecting previously unselected package python3-argcomplete. Preparing to unpack .../07-python3-argcomplete_1.8.1-1.3ubuntu1_all.deb ... Unpacking python3-argcomplete (1.8.1-1.3ubuntu1) ... Selecting previously unselected package python3-jmespath. Preparing to unpack .../08-python3-jmespath_0.9.4-2ubuntu1_all.deb ... Unpacking python3-jmespath (0.9.4-2ubuntu1) ... Selecting previously unselected package python3-kerberos. Preparing to unpack .../09-python3-kerberos_1.1.14-3.1build1_amd64.deb ... Unpacking python3-kerberos (1.1.14-3.1build1) ... Selecting previously unselected package python3-lockfile. Preparing to unpack .../10-python3-lockfile_1%3a0.12.2-2ubuntu2_all.deb ... Unpacking python3-lockfile (1:0.12.2-2ubuntu2) ... Selecting previously unselected package python3-libcloud. Preparing to unpack .../11-python3-libcloud_2.8.0-1_all.deb ... Unpacking python3-libcloud (2.8.0-1) ... Selecting previously unselected package python3-ntlm-auth. Preparing to unpack .../12-python3-ntlm-auth_1.1.0-1_all.deb ... Unpacking python3-ntlm-auth (1.1.0-1) ... Selecting previously unselected package python3-requests-kerberos. Preparing to unpack .../13-python3-requests-kerberos_0.12.0-2_all.deb ... Unpacking python3-requests-kerberos (0.12.0-2) ... Selecting previously unselected package python3-requests-ntlm. Preparing to unpack .../14-python3-requests-ntlm_1.1.0-1_all.deb ... Unpacking python3-requests-ntlm (1.1.0-1) ... Selecting previously unselected package python3-selinux. Preparing to unpack .../15-python3-selinux_3.0-1build2_amd64.deb ... Unpacking python3-selinux (3.0-1build2) ... Selecting previously unselected package python3-xmltodict. Preparing to unpack .../16-python3-xmltodict_0.12.0-1_all.deb ... Unpacking python3-xmltodict (0.12.0-1) ... Selecting previously unselected package python3-winrm. Preparing to unpack .../17-python3-winrm_0.3.0-2_all.deb ... Unpacking python3-winrm (0.3.0-2) ... Setting up python3-lockfile (1:0.12.2-2ubuntu2) ... Setting up python3-ntlm-auth (1.1.0-1) ... Setting up python3-kerberos (1.1.14-3.1build1) ... Setting up libpython2.7-stdlib:amd64 (2.7.18-120.04.1) ... Setting up python3-xmltodict (0.12.0-1) ... Setting up python3-jmespath (0.9.4-2ubuntu1) ... Setting up python3-requests-kerberos (0.12.0-2) ... Setting up ieee-data (20180805.1) ... Setting up python3-dnspython (1.16.0-1build1) ... Setting up python3-selinux (3.0-1build2) ... Setting up python3-crypto (2.6.1-13ubuntu2) ... Setting up python3-argcomplete (1.8.1-1.3ubuntu1) ... Setting up python3-requests-ntlm (1.1.0-1) ... Setting up python2.7 (2.7.18-120.04.1) ... Setting up libpython2-stdlib:amd64 (2.7.17-2ubuntu4) ... Setting up python3-libcloud (2.8.0-1) ... Setting up python2 (2.7.17-2ubuntu4) ... Setting up python3-netaddr (0.7.19-3ubuntu1) ... Setting up python3-winrm (0.3.0-2) ... Setting up ansible (2.9.6+dfsg-1) ... Setting up python-simplejson (3.16.0-2ubuntu2) ... Processing triggers for mime-support (3.64ubuntu1) ... Processing triggers for man-db (2.9.1-1) ... root@vps36928:# ansible-pull -i localhost, -U https://github.com/DevelopersPL/otshosting-provisioning.git -d /srv/otshosting-provisioning --purge -t default Starting Ansible Pull at 2022-02-01 23:25:31 /usr/bin/ansible-pull -i localhost, -U https://github.com/DevelopersPL/otshosting-provisioning.git -d /srv/otshosting-provisioning --purge -t default [WARNING]: Could not match supplied host pattern, ignoring: vps36928.publiccloud.com.br [WARNING]: Could not match supplied host pattern, ignoring: vps36928 localhost | CHANGED => { "after": "b2ac0dfc86f7e22c654a16cc5a9f49019875c87f", "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "before": null, "changed": trPassword: cha Login incorrect vps36928 login: nged: [localhost] TASK [Copy php7.4-fpm pool configuration] ************************** changed: [localhost] TASK [Create /etc/systemd/system/php7.4-fpm.service.d] ************************ changed: [localhost] TASK [Copy session-dir.conf unit override for PHP7.4-FPM] *** changed: [localhost] TASK [Start php7.4-fpm Service] ****************************************** ok: [localhost] TASK [Install nginx] ****************************************************** ok: [localhost] TASK [Create /etc/nginx/default.d] ******************************************** changed: [localhost] TASK [Copy nginx configuration for default vhost] ******************** changed: [localhost] TASK [Start nginx Service] *********************************************** ok: [localhost] TASK [Install debconf to set preseed info] ********** changed: [localhost] TASK [Set preseed info phpmyadmin/dbconfig-install] ******* [WARNING]:changed: [ The valuelocalhost] True (typ e bool) in a string field was converted to 'True' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. TASK [Set preseed info phpmyadmin/app-password-confirm] *** changed: [localhost] TASK [Set preseed info phpmyadmin/mysql/admin-pass] ************ changed: [localhost] TASK [Set preseed info phpmyadmin/mysql/app-pass] ********* changed: [localhost] TASK [Set preseed info phpmyadmin/reconfigure-webserver] *** changed: [localhost] TASK [Install phpmyadmin] ************************************************* changed: [localhost] TASK [Install packages needed to compile TFS] ******************* changed: [localhost] TASK [Install systemd service for TFS] *********************************** changed: [localhost] => (item=tfs.service) changed: [localhost] => (item=tfs-gdb.service) TASK [Download latest TFS from git] *********************************** changed: [localhost] TASK [Parse existing config.lua] *************************************** changed: [localhost] TASK [Generate random MySQL forgottenserver password] *********** changed: [localhost] TASK [set_fact] **************************************************************** ok: [localhost] TASK [Create database user for TFS] *************************** changed: [localhost] TASK [Create database for TFS] ************************************** changed: [localhost] TASK [Import database for TFS] *********************************** changed: [localhost] TASK [Copy config.lua.dist to config.lua if necessary] ****************** changed: [localhost] TASK [Put mysqlHost for database in config.lua] ******************* changed: [localhost] TASK [Put mysqlSock for database in config.lua] ****************** changed: [localhost] TASK [Put password for database in config.lua] *********************** changed: [localhost] TASK [Put server's IP address in config.lua] *********************** changed: [localhost] TASK [Create build directory] ******************************** changed: [localhost] TASK [Cmake forgottenserver source] ******************************************** changed: [localhost] TASK [Compile forgottenserver source] ****************************************** changed: [localhost] TASK [Clone ZnoteAAC from Github] ********************************************* changed: [localhost] TASK [Configure SQL username] ************************************** changed: [localhost] TASK [Configure SQL password] ************************************************ changed: [localhost] TASK [Configure SQL database] *************************************** changed: [localhost] TASK [Configure SQL host] ************************************************* changed: [localhost] TASK Password: Login incorrect Maximum number of tries exceeded (5) root@vps36928:# changed: [localhost] changed:: command not found root@vps36928:# root@vps36928:# TASK [Import ZnoteAAC database schema] ********************** TASK: command not found root@vps36928:# changed: [localhost] changed:: command not found root@vps36928:# root@vps36928:# TASK [Create public_html directory] ******************************************* TASK: command not found root@vps36928:# changed: [localhost] changed:: command not found root@vps36928:# root@vps36928:# RUNNING HANDLER [reload systemd] *********************************************** RUNNING: command not found root@vps36928:# changed: [localhost] changed:: command not found root@vps36928:# root@vps36928:# RUNNING HANDLER [restart systemd-journald] ************************************* RUNNING: command not found root@vps36928:# changed: [localhost] changed:: command not found root@vps36928:# root@vps36928:# RUNNING HANDLER [restart nginx] ************************************************ RUNNING: command not found root@vps36928:# changed: [localhost] changed:: command not found root@vps36928:# root@vps36928:# RUNNING HANDLER [restart php7.4-fpm] ******************************************* RUNNING: command not found root@vps36928:# changed: [localhost] changed:: command not found root@vps36928:# root@vps36928:# RUNNING HANDLER [restart mysql] ************************************************ RUNNING: command not found root@vps36928:# changed: [localhost] changed:: command not found root@vps36928:# root@vps36928:# PLAY RECAP ********************************************************************* PLAY: command not found root@vps36928:~# localhost : ok=79 changed=65 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 localhost: command not found
After the installation I had to give sudo access to the user otsmanager because I was not running the commands.
Please use https://otland.net for help requests.
I removed it from local.yml:
Log:
After the installation I had to give sudo access to the user otsmanager because I was not running the commands.