• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

SIMPLE ALL IN ONE: From nothing to a fully working dedicated server on Ubuntu

Hello how to fix that errors??

Processing triggers for libc-bin (2.35-0ubuntu3.5) ...
Starting Ansible Pull at 2025-02-11 18:08:11
/usr/bin/ansible-pull -i localhost, -U GitHub - DevelopersPL/otshosting-provisioning: Ansible playbook to provision OTS Hosting on Ubuntu 20.04 (https://github.com/DevelopersPL/otshosting-provisioning.git) -d /srv/otshosting-provisioning -t default
[WARNING]: Could not match supplied host pattern, ignoring: ots
[DEPRECATION WARNING]: Distribution ubuntu 22.04 on host localhost should use
/usr/bin/python3, but is using /usr/bin/python for backward compatibility with
prior Ansible releases. A future Ansible release will default to using the
discovered platform python for this host. See Ansible Documentation — Ansible Community Documentation (https://docs.ansible.com/ansible/)
2.10/reference_appendices/interpreter_discovery.html for more information. This
feature will be removed in version 2.12. Deprecation warnings can be disabled
by setting deprecation_warnings=False in ansible.cfg.
localhost | CHANGED => {
"after": "3b694a3932fdcead3f83c385b4d483bd5ef00d7e",
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"before": null,
"changed": true
}
[WARNING]: Could not match supplied host pattern, ignoring: ots

PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
[DEPRECATION WARNINGok: [local]: Distribhost]
ution ubuntu 22.04 on host localhost should use
/usr/bin/python3, but is using /usr/bin/python for backward compatibility with
prior Ansible releases. A future Ansible release will default to using the
discovered platform python for this host. See Ansible Documentation — Ansible Community Documentation (https://docs.ansible.com/ansible/)
2.10/reference_appendices/interpreter_discovery.html for more information. This
feature will be removed in version 2.12. Deprecation warnings can be disabled
by setting deprecation_warnings=False in ansible.cfg.

TASK [Fail if not running on Ubuntu] *******************************************
skipping: [localhost]

TASK [Fail if Ubuntu older than 20.04] *****************************************
skipping: [localhost]

TASK [Check available PHP package name/version] ********************************
ok: [localhost]

TASK [Register available PHP package name/version] *****************************
ok: [localhost]

TASK [Create /var/log/journal] *************************************************
ok: [localhost]

TASK [Create /etc/systemd/journald.conf.d] *************************************
changed: [localhost]

TASK [Install /etc/systemd/journald.conf.d/journald.conf] **********************
changed: [localhost]

TASK [Remove LXC, snapd in case it's installed (Ubuntu Cloud has it)] **********
[WARNING]🆗 [local Updating host]
cache and auto-installing missing dependency: python3-apt

TASK [Upgrade whole system] ****************************************************
changed: [localhost]

TASK [Install admin essentials] ************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "No package matching 'unrar' is available"}

RUNNING HANDLER [restart systemd-journald] *************************************

PLAY RECAP *********************************************************************
localhost : ok=8 changed=3 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0
 
1. Change GRANT ALL PRIVILEGES ON . TO 'root'@'localhost'; to GRANT ALL PRIVILEGES ON . TO 'root'@'localhost';
2. FLUSH PRIVILEGES;
3. Exit

Or try, GRANT ALL PRIVILEGES ON . TO 'root'@'localhost' IDENTIFIED BY 'passwordhere';
Put password, from the vps/hosting you had.
2. FLUSH PRIVILEGES;
3. Exit

Edited: Admin edited post. You can try this, but after dot "." will be error.
 
Last edited:
If still there will be the same error.
From root account, write command " visudo /etc/sudoers "
And check if there is "otsmanager ALL=(ALL:ALL) ALL" if not add this below root user.
"root ALL=(ALL:ALL) ALL" should be there, but if not add this.
Exit through Ctrl+x buttons, save yes.

View attachment 86472

If after exit, and save, will be " /etc/sudoers.tmp unchanged ",
First save by, Ctrl + O, confirm by enter, and exit by Ctrl + X
 
Last edited:
Hello,

While playing around with this I came across the otshosting-provisioning/templates/.otsmanager at 5f5af0115354e9ba322d2ab8d247167ebab4540d · DevelopersPL/otshosting-provisioning (https://github.com/DevelopersPL/otshosting-provisioning/blob/5f5af0115354e9ba322d2ab8d247167ebab4540d/templates/.otsmanager#L10)

alias updatetfs='cd /home/otsmanager/forgottenserver && git pull && rm -rf build && mkdir -p build && cd build && cmake .. && make && cd'

It seems that it always builds, regardless if the source code has been changed or not, It seems unnecessary. I would rather pull the changes, and only build if the source code has changed. I've been trying to google around and find something that would do that but I haven't had any luck,

How would I do to make it only build if the /src has been changed, I tried with GitHub diff but I wasn't able to make it work.
 
Back
Top