• 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

TASK: [Check hostname] ********************************************************
failed: [localhost] => {"changed": true, "cmd": ["hostname", "-f"], "delta": "0:00:00.018443", "end": "2014-08-21 00:33:04. 589827", "rc": 1, "start": "2014-08-21 00:33:04.571384"}
stderr: hostname: Name or service not known

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
to retry, use: --limit @/root/local.retry

localhost : ok=20 changed=17 unreachable=0 failed=1
 
root@ubuntu:/home/victor#
root@ubuntu:/home/victor# echo "localhost" > /tmp/ansible_hosts
root@ubuntu:/home/victor# export ANSIBLE_HOSTS=/tmp/ansible_hosts
root@ubuntu:/home/victor#
root@ubuntu:/home/victor# ansible-pull -U https://github.com/DevelopersPL/otshosting-provisioning.git -o -d /srv
Starting ansible-pull at 2014-08-21 03:15:14
localhost | success >> {
"after": "603ce497e5b2ca745b43269cae693f59d29a4d65",
"before": "603ce497e5b2ca745b43269cae693f59d29a4d65",
"changed": false
}

Repository has not changed, quitting.


From start it said

root@ubuntu:/home/victor# ansible-pull -U https://github.com/DevelopersPL/otshosting-provisioning.git -o -d /srv
Starting ansible-pull at 2014-08-21 03:07:41
localhost | success >> {
"after": "603ce497e5b2ca745b43269cae693f59d29a4d65",
"before": null,
"changed": true
}

ERROR: provided hosts list is empty


Using fresh ubuntu-14.04.1-server-amd64 installation
 
Last edited:
You can try
Code:
ANSIBLE_HOSTS=/tmp/ansible_hosts ansible-pull...
 
It seems not to work, it installs correctly, but the web part will not work for me
i'm using fresh ubuntu-14.04.1-server-amd64 installation (headless)
 
So there is no error in Ansible run but your website doesn't respond?
 
Ubuntu gives the green light but the site will not open, I should add the Ubuntu one is the server its over a Lan, im using a pc to administer the headless server. I ran ifconfig to make sure I had the right ip. I had phpmyadmin running before but not on the new server that I was trying to set up. I perhaps missed a step? I only added a openshh-server to administer a good old copy paste:) from your post.
 
Tried this method, yet some crucial stuff doesn't work/install.
OS: Ubuntu 14.04 LTS

Installs phpMyAdmin to run at http://yourip:3860
Not working.

Install nginx webserver with PHP5-FPM support. Put your web files in /home/otsmanager/www/public_html
Works, yet not configured to use ./otsmanager/www/public_html/.

Download and compile tfs source into /home/otsmanager/forgottenserver
Not downloaded.
http://piclair.com/a2sts

Create "forgottenserver" database on MySQL server, generate random password and set it in config.lua
Probably not working as phpmyadmin doesn't run.

Import forgottenserver.sql schema into forgottenserver database
Same as above

Most of it is easy to configure like nginx or phpmyadmin, but the tfs sources is quite crucial imo.
Any way to fix this?

== ALSO ==

Composer hosts are failing:
http://piclair.com/82lfc
 
@Ecstacy Instead of listing what doesn't work, paste the log (output) of Ansible run. If it failed anywhere, it is not going any further, so nothing from that point is done.
 
@Ecstacy Instead of listing what doesn't work, paste the log (output) of Ansible run. If it failed anywhere, it is not going any further, so nothing from that point is done.
Oh ofcourse, sorry.
Here's the pull from a freshly installed Ubuntu 14.04 LTS.

-provisioning.git -o -d /srv
Starting ansible-pull at 2014-09-17 15:38:24
localhost | success >> {
"after": "603ce497e5b2ca745b43269cae693f59d29a4d65",
"before": null,
"changed": true
}


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

GATHERING FACTS ***************************************************************
ok: [localhost]

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

TASK: [Install admin essentials] **********************************************
changed: [localhost] => (item=mc,htop,unrar-free)

TASK: [Create otsmanager system user] *****************************************
changed: [localhost]

TASK: [Create upstart config directory for otsmanager] ************************
changed: [localhost]

TASK: [Install upstart session job for TFS for otsmanager] ********************
changed: [localhost]

TASK: [Install upstart session runner 1] **************************************
changed: [localhost]

TASK: [Install upstart session runner 2] **************************************
changed: [localhost]

TASK: [Start upstart session] *************************************************
changed: [localhost]

TASK: [Install .otsmanager shell configuration] *******************************
changed: [localhost]

TASK: [Activate .otsmanager shell configuration file] *************************
changed: [localhost]

TASK: [Delete Ubuntu Cloud ad] ************************************************
ok: [localhost]

TASK: [Install welcome message] ***********************************************
changed: [localhost]

TASK: [Install MySQL Server and backup packages] ******************************
changed: [localhost] => (item=mysql-server,python-mysqldb,automysqlbackup)

TASK: [Start Mysql Service] ***************************************************
ok: [localhost]

TASK: [Generate random MySQL root password] ***********************************
changed: [localhost]

TASK: [Set MySQL root password (localhost)] ***********************************
changed: [localhost]

TASK: [Save MySQL root password] **********************************************
changed: [localhost]

TASK: [Save MySQL root password (for otsmanager)] *****************************
changed: [localhost]

TASK: [Set MySQL root password (%)] *******************************************
changed: [localhost]

TASK: [Check hostname] ********************************************************
changed: [localhost]

TASK: [Delete MySQL root accounts we don't want] ******************************
changed: [localhost] => (item=127.0.0.1)
changed: [localhost] => (item=::1)
ok: [localhost] => (item=realhostname.stdout)

TASK: [Ensure anonymous MySQL users are not in the database] ******************
ok: [localhost] => (item=localhost)
ok: [localhost] => (item=127.0.0.1)

TASK: [Delete MySQL test database] ********************************************
ok: [localhost]

TASK: [Install php5-fpm] ******************************************************
changed: [localhost] => (item=php5-fpm,php5-apcu,php5-mysqlnd,php5-json,php5-cli,php5-curl)

TASK: [Set php.ini display_errors] ********************************************
changed: [localhost]

TASK: [Set php.ini default_timezone] ******************************************
changed: [localhost]

TASK: [Set php.ini upload_max_filesize] ***************************************
changed: [localhost]

TASK: [Set php.ini post_max_size] *********************************************
changed: [localhost]

TASK: [Copy php5-fpm configuration] *******************************************
changed: [localhost]

TASK: [Set proper permissions on the socket] **********************************
ok: [localhost]

TASK: [Start php5-fpm Service] ************************************************
ok: [localhost]

TASK: [Install nginx] *********************************************************
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] ******************************************************
changed: [localhost]

TASK: [Install phpmyadmin] ****************************************************
changed: [localhost] => (item=phpmyadmin)

TASK: [Copy nginx configuration for phpmyadmin vhost] *************************
changed: [localhost]

TASK: [Enable phpmyadmin vhost] ***********************************************
changed: [localhost]

TASK: [Enable mcrypt for PHP5-FPM] ********************************************
changed: [localhost]

TASK: [Install composer] ******************************************************
changed: [localhost]

TASK: [git repo=[url]https://github.com/DevelopersPL/DevAAC.git[/url] dest=/home/otsmanager/www] ***
changed: [localhost]

TASK: [Install requirements with composer] ************************************
failed: [localhost] => {"changed": true, "cmd": "cd /home/otsmanager/www && HOME=/home/otsmanager /usr/local/bin/composer.phar install", "delta": "0:00:00.002690", "end": "2014-09-17 15:39:27.560293", "rc": 127, "start": "2014-09-17 15:39:27.557603"}
stderr: /bin/sh: 1: /usr/local/bin/composer.phar: not found

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
to retry, use: --limit @/root/local.retry

localhost : ok=43 changed=34 unreachable=0 failed=1
 
Interesting, can you try manually executing:
Code:
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin
 
Interesting, can you try manually executing:
Code:
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin

Code:
All settings correct for using Composer
Downloading...

Composer successfully installed to: /usr/local/bin/composer.phar
Use it: php /usr/local/bin/composer.phar

Installed fine now.
 
Code:
ansible-pull -U https://github.com/DevelopersPL/otshosting-provisioning.git -o -d /srv -f

Starting ansible-pull at 2014-09-17 16:04:51
localhost | success >> {
    "after": "603ce497e5b2ca745b43269cae693f59d29a4d65",
    "before": "603ce497e5b2ca745b43269cae693f59d29a4d65",
    "changed": false
}

Repository has not changed, quitting.

Doesn't seem to do anything.

---

After a re-install of my OS, and installing composer before the pull, it works :)

---

You might want to edit that the phpMyAdmin port == 3380, not 3860
 
Last edited:
Code:
ansible-pull -U https://github.com/DevelopersPL/otshosting-provisioning.git -o -d /srv -f

Starting ansible-pull at 2014-09-17 16:04:51
localhost | success >> {
    "after": "603ce497e5b2ca745b43269cae693f59d29a4d65",
    "before": "603ce497e5b2ca745b43269cae693f59d29a4d65",
    "changed": false
}

Repository has not changed, quitting.

Doesn't seem to do anything.
You would have to remove -o flag.

-o, --only-if-changed
Run the playbook only if the repository has changed

You might want to edit that the phpMyAdmin port == 3380, not 3860
Thanks, fixed that in first post.
 
Back
Top