Giter VIP home page Giter VIP logo

hgv-deploy-full's People

Contributors

dhilditch avatar pborreli avatar supersoju avatar zach-adams avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hgv-deploy-full's Issues

Problem with multiple installs

Hi !

I tried to use it with a fresh ubuntun 14.04 install for 2 WP, and that is the result :

NOTIFIED: [nginx | nginx restart] *********************************************
changed: [site1.com]
failed: [site2.com] => {"failed": true}
msg: nginx: [emerg] bind() to 0.0.0.0:8080 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (98: Address already in use)
nginx: [emerg] still could not bind()


NOTIFIED: [nginx | update-rc nginx] *******************************************
changed: [site1.com]

NOTIFIED: [varnish | varnish reload] ******************************************
changed: [site1.com]

NOTIFIED: [varnish | varnishncsa reload] **************************************
changed: [site1.com]

PLAY RECAP ********************************************************************
           to retry, use: --limit @/home/my/playbook.retry

site2.com           : ok=80   changed=60   unreachable=0    failed=1
site1.com        : ok=84   changed=64   unreachable=0    failed=0

Any idea ?

Thanks !

Running multiple installs with MySQL root password set

Hey,
I was running into some issues when I tried to install multiple WordPress sites at once, because my mysql usernames were too long. But yeah I decided to fix it later and went forward and changed my root password. By the time I was ready to setup the new sites I couldn't anymore since I changed the root password and the playbook doesn't take that into account.
I added them myself now, but I was thinking my we can have a user set a root user and password, so you won't run into any issues when you want to create a new site.
I would create the pull request myself, but I haven't use ansible before and don't want to screw up 😃

Looking forward to your feedback.

Too long time hanging on TASK [percona : Install Percona server]

Hi, zach,

I have set up brand new Digital Ocean Ubuntu 14.04 droplet to implement your Hgv-deploy-full code.

I did this from the brand start, Nothing is on the server, and No other installs or software running on the server.

But Every time, I have the same problems.

I think there might be some problems in installing Percona server. Because Every time, it takes forever to execute on Task of install Percona Server, by end of the exectution.

It prompt the same problem again and again,

TASK [wordpress : Provision WP Database] ***************************************
fatal: [ifengshuo.com]: FAILED! => {"changed": false, "failed": true, "msg": "unable to find /root/.my.cnf. Exception message: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")"}

Can you tell me the problems?

PS: I am attaching the command i am running from the SSH:

RingsedeMacBook-Pro:~ ringse$ ssh [email protected]
[email protected]'s password:
You are required to change your password immediately (root enforced)
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-85-generic x86_64)

  • Documentation: https://help.ubuntu.com/

    System information as of Tue May 31 14:07:06 EDT 2016

    System load: 0.0 Memory usage: 9% Processes: 53
    Usage of /: 6.4% of 19.56GB Swap usage: 0% Users logged in: 0

    Graph this data and manage this system at:
    https://landscape.canonical.com/

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

Changing password for root.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:


WARNING! Your environment specifies an invalid locale.
This can affect your user experience significantly, including the
ability to manage packages. You may install the locales by running:

sudo apt-get install language-pack-UTF-8
or
sudo locale-gen UTF-8

To see all available language packs, run:
apt-cache search "^language-pack-[a-z][a-z]$"
To disable this message for all users, run:
sudo touch /var/lib/cloud/instance/locale-check.skip


root@HGV:# sudo locale-gen UTF-8
root@HGV:
# sudo apt-get install software-properties-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
software-properties-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@HGV:~# sudo add-apt-repository ppa:ansible/ansible
Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.

http://ansible.com/
More info: https://launchpad.net/~ansible/+archive/ubuntu/ansible
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring /tmp/tmpp5m4aram/secring.gpg' created gpg: keyring/tmp/tmpp5m4aram/pubring.gpg' created
gpg: requesting key 7BB9C367 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpp5m4aram/trustdb.gpg: trustdb created
gpg: key 7BB9C367: public key "Launchpad PPA for Ansible, Inc." imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
root@HGV:# sudo apt-get update && sudo apt-get upgrade
Get:1 http://ppa.launchpad.net trusty InRelease [16.0 kB]
Get:2 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Ign http://mirrors.digitalocean.com trusty InRelease
Get:3 http://mirrors.digitalocean.com trusty-updates InRelease [65.9 kB]
Get:4 http://ppa.launchpad.net trusty/main amd64 Packages [524 B]
Get:5 http://security.ubuntu.com trusty-security/main Sources [116 kB]
Get:6 http://ppa.launchpad.net trusty/main i386 Packages [524 B]
Get:7 http://ppa.launchpad.net trusty/main Translation-en [322 B]
Get:8 http://mirrors.digitalocean.com trusty-backports InRelease [65.9 kB]
Get:9 http://security.ubuntu.com trusty-security/universe Sources [37.3 kB]
Get:10 http://security.ubuntu.com trusty-security/main amd64 Packages [483 kB]
Hit http://mirrors.digitalocean.com trusty Release.gpg
Get:11 http://mirrors.digitalocean.com trusty-updates/main Sources [275 kB]
Get:12 http://security.ubuntu.com trusty-security/universe amd64 Packages [130 kB]
Get:13 http://security.ubuntu.com trusty-security/main i386 Packages [456 kB]
Get:14 http://security.ubuntu.com trusty-security/universe i386 Packages [130 kB]
Get:15 http://security.ubuntu.com trusty-security/main Translation-en [265 kB]
Get:16 http://security.ubuntu.com trusty-security/universe Translation-en [76.6 kB]
Get:17 http://mirrors.digitalocean.com trusty-updates/restricted Sources [5352 B]
Get:18 http://mirrors.digitalocean.com trusty-updates/universe Sources [156 kB]
Get:19 http://mirrors.digitalocean.com trusty-updates/multiverse Sources [5939 B]
Get:20 http://mirrors.digitalocean.com trusty-updates/main amd64 Packages [769 kB]
Get:21 http://mirrors.digitalocean.com trusty-updates/restricted amd64 Packages [15.9 kB]
Get:22 http://mirrors.digitalocean.com trusty-updates/universe amd64 Packages [361 kB]
Get:23 http://mirrors.digitalocean.com trusty-updates/multiverse amd64 Packages [13.2 kB]
Get:24 http://mirrors.digitalocean.com trusty-updates/main i386 Packages [737 kB]
Get:25 http://mirrors.digitalocean.com trusty-updates/restricted i386 Packages [15.6 kB]
Get:26 http://mirrors.digitalocean.com trusty-updates/universe i386 Packages [363 kB]
Get:27 http://mirrors.digitalocean.com trusty-updates/multiverse i386 Packages [13.6 kB]
Get:28 http://mirrors.digitalocean.com trusty-updates/main Translation-en [385 kB]
Get:29 http://mirrors.digitalocean.com trusty-updates/multiverse Translation-en [7227 B]
Get:30 http://mirrors.digitalocean.com trusty-updates/restricted Translation-en [3699 B]
Get:31 http://mirrors.digitalocean.com trusty-updates/universe Translation-en [189 kB]
Get:32 http://mirrors.digitalocean.com trusty-backports/main Sources [9544 B]
Get:33 http://mirrors.digitalocean.com trusty-backports/restricted Sources [28 B]
Get:34 http://mirrors.digitalocean.com trusty-backports/universe Sources [35.2 kB]
Get:35 http://mirrors.digitalocean.com trusty-backports/multiverse Sources [1898 B]
Get:36 http://mirrors.digitalocean.com trusty-backports/main amd64 Packages [13.0 kB]
Get:37 http://mirrors.digitalocean.com trusty-backports/restricted amd64 Packages [28 B]
Get:38 http://mirrors.digitalocean.com trusty-backports/universe amd64 Packages [43.1 kB]
Get:39 http://mirrors.digitalocean.com trusty-backports/multiverse amd64 Packages [1571 B]
Get:40 http://mirrors.digitalocean.com trusty-backports/main i386 Packages [13.1 kB]
Get:41 http://mirrors.digitalocean.com trusty-backports/restricted i386 Packages [28 B]
Get:42 http://mirrors.digitalocean.com trusty-backports/universe i386 Packages [43.2 kB]
Get:43 http://mirrors.digitalocean.com trusty-backports/multiverse i386 Packages [1552 B]
Get:44 http://mirrors.digitalocean.com trusty-backports/main Translation-en [7370 B]
Get:45 http://mirrors.digitalocean.com trusty-backports/multiverse Translation-en [1215 B]
Get:46 http://mirrors.digitalocean.com trusty-backports/restricted Translation-en [28 B]
Get:47 http://mirrors.digitalocean.com trusty-backports/universe Translation-en [36.8 kB]
Hit http://mirrors.digitalocean.com trusty Release
Hit http://mirrors.digitalocean.com trusty/main Sources
Hit http://mirrors.digitalocean.com trusty/restricted Sources
Hit http://mirrors.digitalocean.com trusty/universe Sources
Hit http://mirrors.digitalocean.com trusty/multiverse Sources
Hit http://mirrors.digitalocean.com trusty/main amd64 Packages
Hit http://mirrors.digitalocean.com trusty/restricted amd64 Packages
Hit http://mirrors.digitalocean.com trusty/universe amd64 Packages
Hit http://mirrors.digitalocean.com trusty/multiverse amd64 Packages
Hit http://mirrors.digitalocean.com trusty/main i386 Packages
Hit http://mirrors.digitalocean.com trusty/restricted i386 Packages
Hit http://mirrors.digitalocean.com trusty/universe i386 Packages
Hit http://mirrors.digitalocean.com trusty/multiverse i386 Packages
Hit http://mirrors.digitalocean.com trusty/main Translation-en
Hit http://mirrors.digitalocean.com trusty/multiverse Translation-en
Hit http://mirrors.digitalocean.com trusty/restricted Translation-en
Hit http://mirrors.digitalocean.com trusty/universe Translation-en
Fetched 5432 kB in 8s (653 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
linux-generic linux-headers-generic linux-image-generic
The following packages will be upgraded:
apport apt apt-transport-https apt-utils bash-completion cpp-4.8 dosfstools
gcc-4.8-base klibc-utils libapt-inst1.5 libapt-pkg4.12 libc-bin libc6
libexpat1 libklibc libnl-3-200 libnl-genl-3-200 libstdc++6 lsb-base
lsb-release multiarch-support openssh-client openssh-server
openssh-sftp-server python3-apport python3-problem-report
26 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 14.3 MB of archives.
After this operation, 17.4 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://security.ubuntu.com/ubuntu/ trusty-security/main dosfstools amd64 3.0.26-1ubuntu0.1 [60.1 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libc-bin amd64 2.19-0ubuntu6.9 [1165 kB]
Get:3 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libc6 amd64 2.19-0ubuntu6.9 [4717 kB]
Get:4 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main cpp-4.8 amd64 4.8.4-2ubuntu1
14.04.3 [4595 kB]
Get:5 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main gcc-4.8-base amd64 4.8.4-2ubuntu114.04.3 [16.2 kB]
Get:6 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libstdc++6 amd64 4.8.4-2ubuntu1
14.04.3 [259 kB]
Get:7 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libapt-pkg4.12 amd64 1.0.1ubuntu2.14 [638 kB]
Get:8 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main apt amd64 1.0.1ubuntu2.14 [955 kB]
Get:9 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libapt-inst1.5 amd64 1.0.1ubuntu2.14 [58.6 kB]
Get:10 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libexpat1 amd64 2.1.0-4ubuntu1.2 [71.1 kB]
Get:11 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main bash-completion all 1:2.1-4ubuntu0.2 [153 kB]
Get:12 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libnl-genl-3-200 amd64 3.2.21-1ubuntu1.1 [10.2 kB]
Get:13 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libnl-3-200 amd64 3.2.21-1ubuntu1.1 [44.7 kB]
Get:14 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main lsb-base all 4.1+Debian11ubuntu6.1 [13.0 kB]
Get:15 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main multiarch-support amd64 2.19-0ubuntu6.9 [4484 B]
Get:16 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main apt-utils amd64 1.0.1ubuntu2.14 [172 kB]
Get:17 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main lsb-release all 4.1+Debian11ubuntu6.1 [11.5 kB]
Get:18 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main klibc-utils amd64 2.0.3-0ubuntu1.14.04.1 [107 kB]
Get:19 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libklibc amd64 2.0.3-0ubuntu1.14.04.1 [40.8 kB]
Get:20 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main apt-transport-https amd64 1.0.1ubuntu2.14 [25.0 kB]
Get:21 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main openssh-sftp-server amd64 1:6.6p1-2ubuntu2.7 [34.2 kB]
Get:22 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main openssh-server amd64 1:6.6p1-2ubuntu2.7 [322 kB]
Get:23 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main openssh-client amd64 1:6.6p1-2ubuntu2.7 [564 kB]
Get:24 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main python3-problem-report all 2.14.1-0ubuntu3.21 [9710 B]
Get:25 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main python3-apport all 2.14.1-0ubuntu3.21 [75.3 kB]
Get:26 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main apport all 2.14.1-0ubuntu3.21 [182 kB]
Fetched 14.3 MB in 4s (3154 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...
(Reading database ... 57380 files and directories currently installed.)
Preparing to unpack .../libc-bin_2.19-0ubuntu6.9_amd64.deb ...
Unpacking libc-bin (2.19-0ubuntu6.9) over (2.19-0ubuntu6.7) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libc-bin (2.19-0ubuntu6.9) ...
(Reading database ... 57379 files and directories currently installed.)
Preparing to unpack .../libc6_2.19-0ubuntu6.9_amd64.deb ...
Unpacking libc6:amd64 (2.19-0ubuntu6.9) over (2.19-0ubuntu6.7) ...
Setting up libc6:amd64 (2.19-0ubuntu6.9) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
(Reading database ... 57379 files and directories currently installed.)
Preparing to unpack .../cpp-4.8_4.8.4-2ubuntu114.04.3_amd64.deb ...
Unpacking cpp-4.8 (4.8.4-2ubuntu1
14.04.3) over (4.8.4-2ubuntu114.04.1) ...
Preparing to unpack .../gcc-4.8-base_4.8.4-2ubuntu1
14.04.3_amd64.deb ...
Unpacking gcc-4.8-base:amd64 (4.8.4-2ubuntu114.04.3) over (4.8.4-2ubuntu114.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up gcc-4.8-base:amd64 (4.8.4-2ubuntu114.04.3) ...
(Reading database ... 57379 files and directories currently installed.)
Preparing to unpack .../libstdc++6_4.8.4-2ubuntu1
14.04.3_amd64.deb ...
Unpacking libstdc++6:amd64 (4.8.4-2ubuntu114.04.3) over (4.8.4-2ubuntu114.04.1) ...
Setting up libstdc++6:amd64 (4.8.4-2ubuntu114.04.3) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
(Reading database ... 57379 files and directories currently installed.)
Preparing to unpack .../libapt-pkg4.12_1.0.1ubuntu2.14_amd64.deb ...
Unpacking libapt-pkg4.12:amd64 (1.0.1ubuntu2.14) over (1.0.1ubuntu2.13) ...
Setting up libapt-pkg4.12:amd64 (1.0.1ubuntu2.14) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
(Reading database ... 57379 files and directories currently installed.)
Preparing to unpack .../apt_1.0.1ubuntu2.14_amd64.deb ...
Unpacking apt (1.0.1ubuntu2.14) over (1.0.1ubuntu2.13) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up apt (1.0.1ubuntu2.14) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
(Reading database ... 57379 files and directories currently installed.)
Preparing to unpack .../libapt-inst1.5_1.0.1ubuntu2.14_amd64.deb ...
Unpacking libapt-inst1.5:amd64 (1.0.1ubuntu2.14) over (1.0.1ubuntu2.13) ...
Preparing to unpack .../libexpat1_2.1.0-4ubuntu1.2_amd64.deb ...
Unpacking libexpat1:amd64 (2.1.0-4ubuntu1.2) over (2.1.0-4ubuntu1.1) ...
Preparing to unpack .../bash-completion_1%3a2.1-4ubuntu0.2_all.deb ...
Unpacking bash-completion (1:2.1-4ubuntu0.2) over (1:2.1-4ubuntu0.1) ...
Preparing to unpack .../libnl-genl-3-200_3.2.21-1ubuntu1.1_amd64.deb ...
Unpacking libnl-genl-3-200:amd64 (3.2.21-1ubuntu1.1) over (3.2.21-1) ...
Preparing to unpack .../libnl-3-200_3.2.21-1ubuntu1.1_amd64.deb ...
Unpacking libnl-3-200:amd64 (3.2.21-1ubuntu1.1) over (3.2.21-1) ...
Preparing to unpack .../lsb-base_4.1+Debian11ubuntu6.1_all.deb ...
Unpacking lsb-base (4.1+Debian11ubuntu6.1) over (4.1+Debian11ubuntu6) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up lsb-base (4.1+Debian11ubuntu6.1) ...
(Reading database ... 57380 files and directories currently installed.)
Preparing to unpack .../multiarch-support_2.19-0ubuntu6.9_amd64.deb ...
Unpacking multiarch-support (2.19-0ubuntu6.9) over (2.19-0ubuntu6.7) ...
Setting up multiarch-support (2.19-0ubuntu6.9) ...
(Reading database ... 57380 files and directories currently installed.)
Preparing to unpack .../apt-utils_1.0.1ubuntu2.14_amd64.deb ...
Unpacking apt-utils (1.0.1ubuntu2.14) over (1.0.1ubuntu2.13) ...
Preparing to unpack .../lsb-release_4.1+Debian11ubuntu6.1_all.deb ...
Unpacking lsb-release (4.1+Debian11ubuntu6.1) over (4.1+Debian11ubuntu6) ...
Preparing to unpack .../klibc-utils_2.0.3-0ubuntu1.14.04.1_amd64.deb ...
Unpacking klibc-utils (2.0.3-0ubuntu1.14.04.1) over (2.0.3-0ubuntu1) ...
Preparing to unpack .../libklibc_2.0.3-0ubuntu1.14.04.1_amd64.deb ...
Unpacking libklibc (2.0.3-0ubuntu1.14.04.1) over (2.0.3-0ubuntu1) ...
Preparing to unpack .../apt-transport-https_1.0.1ubuntu2.14_amd64.deb ...
Unpacking apt-transport-https (1.0.1ubuntu2.14) over (1.0.1ubuntu2.13) ...
Preparing to unpack .../dosfstools_3.0.26-1ubuntu0.1_amd64.deb ...
Unpacking dosfstools (3.0.26-1ubuntu0.1) over (3.0.26-1) ...
Preparing to unpack .../openssh-sftp-server_1%3a6.6p1-2ubuntu2.7_amd64.deb ...
Unpacking openssh-sftp-server (1:6.6p1-2ubuntu2.7) over (1:6.6p1-2ubuntu2.6) ...
Preparing to unpack .../openssh-server_1%3a6.6p1-2ubuntu2.7_amd64.deb ...
Unpacking openssh-server (1:6.6p1-2ubuntu2.7) over (1:6.6p1-2ubuntu2.6) ...
Preparing to unpack .../openssh-client_1%3a6.6p1-2ubuntu2.7_amd64.deb ...
Unpacking openssh-client (1:6.6p1-2ubuntu2.7) over (1:6.6p1-2ubuntu2.6) ...
Preparing to unpack .../python3-problem-report_2.14.1-0ubuntu3.21_all.deb ...
Unpacking python3-problem-report (2.14.1-0ubuntu3.21) over (2.14.1-0ubuntu3.19) ...
Preparing to unpack .../python3-apport_2.14.1-0ubuntu3.21_all.deb ...
Unpacking python3-apport (2.14.1-0ubuntu3.21) over (2.14.1-0ubuntu3.19) ...
Preparing to unpack .../apport_2.14.1-0ubuntu3.21_all.deb ...
apport stop/waiting
Unpacking apport (2.14.1-0ubuntu3.21) over (2.14.1-0ubuntu3.19) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for ufw (0.34
rc-0ubuntu2) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Setting up cpp-4.8 (4.8.4-2ubuntu114.04.3) ...
Setting up libapt-inst1.5:amd64 (1.0.1ubuntu2.14) ...
Setting up libexpat1:amd64 (2.1.0-4ubuntu1.2) ...
Setting up bash-completion (1:2.1-4ubuntu0.2) ...
Setting up libnl-3-200:amd64 (3.2.21-1ubuntu1.1) ...
Setting up libnl-genl-3-200:amd64 (3.2.21-1ubuntu1.1) ...
Setting up apt-utils (1.0.1ubuntu2.14) ...
Setting up lsb-release (4.1+Debian11ubuntu6.1) ...
Setting up libklibc (2.0.3-0ubuntu1.14.04.1) ...
Setting up klibc-utils (2.0.3-0ubuntu1.14.04.1) ...
Setting up apt-transport-https (1.0.1ubuntu2.14) ...
Setting up dosfstools (3.0.26-1ubuntu0.1) ...
Setting up openssh-client (1:6.6p1-2ubuntu2.7) ...
Setting up openssh-sftp-server (1:6.6p1-2ubuntu2.7) ...
Setting up openssh-server (1:6.6p1-2ubuntu2.7) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ssh stop/waiting
ssh start/running, process 5425
Setting up python3-problem-report (2.14.1-0ubuntu3.21) ...
Setting up python3-apport (2.14.1-0ubuntu3.21) ...
Setting up apport (2.14.1-0ubuntu3.21) ...
apport start/running
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
root@HGV:
# sudo apt-get install ansible git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
git-man liberror-perl python-crypto python-httplib2 python-jinja2
python-markupsafe python-paramiko python-setuptools sshpass
Suggested packages:
git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk
gitweb git-arch git-bzr git-cvs git-mediawiki git-svn python-crypto-dbg
python-crypto-doc python-jinja2-doc
The following NEW packages will be installed:
ansible git git-man liberror-perl python-crypto python-httplib2
python-jinja2 python-markupsafe python-paramiko python-setuptools sshpass
0 upgraded, 11 newly installed, 0 to remove and 3 not upgraded.
Need to get 5335 kB of archives.
After this operation, 35.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ppa.launchpad.net/ansible/ansible/ubuntu/ trusty/main ansible all 2.1.0.0-1ppatrusty [1233 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu/ trusty/main python-markupsafe amd64 0.18-1build2 [14.3 kB]
Get:3 http://mirrors.digitalocean.com/ubuntu/ trusty/main python-jinja2 all 2.7.2-2 [161 kB]
Get:4 http://mirrors.digitalocean.com/ubuntu/ trusty/main python-crypto amd64 2.6.1-4build1 [239 kB]
Get:5 http://mirrors.digitalocean.com/ubuntu/ trusty/main python-paramiko all 1.10.1-1git1build1 [106 kB]
Get:6 http://mirrors.digitalocean.com/ubuntu/ trusty/main python-httplib2 all 0.8-2build1 [35.4 kB]
Get:7 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main python-setuptools all 3.3-1ubuntu2 [230 kB]
Get:8 http://mirrors.digitalocean.com/ubuntu/ trusty/universe sshpass amd64 1.05-1 [10.5 kB]
Get:9 http://mirrors.digitalocean.com/ubuntu/ trusty/main liberror-perl all 0.17-1.1 [21.1 kB]
Get:10 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main git-man all 1:1.9.1-1ubuntu0.3 [699 kB]
Get:11 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main git amd64 1:1.9.1-1ubuntu0.3 [2586 kB]
Fetched 5335 kB in 7s (683 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package python-markupsafe.
(Reading database ... 57380 files and directories currently installed.)
Preparing to unpack .../python-markupsafe_0.18-1build2_amd64.deb ...
Unpacking python-markupsafe (0.18-1build2) ...
Selecting previously unselected package python-jinja2.
Preparing to unpack .../python-jinja2_2.7.2-2_all.deb ...
Unpacking python-jinja2 (2.7.2-2) ...
Selecting previously unselected package python-crypto.
Preparing to unpack .../python-crypto_2.6.1-4build1_amd64.deb ...
Unpacking python-crypto (2.6.1-4build1) ...
Selecting previously unselected package python-paramiko.
Preparing to unpack .../python-paramiko_1.10.1-1git1build1_all.deb ...
Unpacking python-paramiko (1.10.1-1git1build1) ...
Selecting previously unselected package python-httplib2.
Preparing to unpack .../python-httplib2_0.8-2build1_all.deb ...
Unpacking python-httplib2 (0.8-2build1) ...
Selecting previously unselected package python-setuptools.
Preparing to unpack .../python-setuptools_3.3-1ubuntu2_all.deb ...
Unpacking python-setuptools (3.3-1ubuntu2) ...
Selecting previously unselected package sshpass.
Preparing to unpack .../sshpass_1.05-1_amd64.deb ...
Unpacking sshpass (1.05-1) ...
Selecting previously unselected package ansible.
Preparing to unpack .../ansible_2.1.0.0-1ppa
trusty_all.deb ...
Unpacking ansible (2.1.0.0-1ppatrusty) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...
Unpacking liberror-perl (0.17-1.1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a1.9.1-1ubuntu0.3_all.deb ...
Unpacking git-man (1:1.9.1-1ubuntu0.3) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a1.9.1-1ubuntu0.3_amd64.deb ...
Unpacking git (1:1.9.1-1ubuntu0.3) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up python-markupsafe (0.18-1build2) ...
Setting up python-jinja2 (2.7.2-2) ...
Setting up python-crypto (2.6.1-4build1) ...
Setting up python-paramiko (1.10.1-1git1build1) ...
Setting up python-httplib2 (0.8-2build1) ...
Setting up python-setuptools (3.3-1ubuntu2) ...
Setting up sshpass (1.05-1) ...
Setting up ansible (2.1.0.0-1ppa
trusty) ...
Setting up liberror-perl (0.17-1.1) ...
Setting up git-man (1:1.9.1-1ubuntu0.3) ...
Setting up git (1:1.9.1-1ubuntu0.3) ...
root@HGV:# git clone https://github.com/zach-adams/hgv-deploy-full/
Cloning into 'hgv-deploy-full'...
remote: Counting objects: 508, done.
remote: Total 508 (delta 0), reused 0 (delta 0), pack-reused 508
Receiving objects: 100% (508/508), 86.48 KiB | 0 bytes/s, done.
Resolving deltas: 100% (161/161), done.
Checking connectivity... done.
root@HGV:
# cd hgv-deploy-full
root@HGV:~/hgv-deploy-full# sudo ansible-playbook -i hosts playbook.yml -c local[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and
make sure become_method is 'sudo' (default).
This feature will be removed in a
future release. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.

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

TASK [setup] *******************************************************************
ok: [yourhostname.com]

TASK [common : Install necessary packages for proper system state] *************
changed: [yourhostname.com] => (item=[u'sysv-rc-conf', u'python-apt', u'python-pycurl', u'python-mysqldb', u'git', u'curl', u'unzip', u'php5-mysql', u'traceroute', u'ack-grep', u'subversion', u'autojump', u'siege'])

TASK [common : Get Composer] ***************************************************
changed: [yourhostname.com]

TASK [common : Install PsySH] **************************************************
changed: [yourhostname.com]

TASK [common : Install Boris] **************************************************
changed: [yourhostname.com]

TASK [common : Fix the stdin bug, step 1] **************************************
ok: [yourhostname.com]

TASK [common : Fix the stdin bug, step 2] **************************************
changed: [yourhostname.com]

TASK [hhvm : Enable HHVM repo key] *********************************************
changed: [yourhostname.com]

TASK [hhvm : Enable HHVM repo] *************************************************
changed: [yourhostname.com]

TASK [hhvm : Install HHVM] *****************************************************
changed: [yourhostname.com]

TASK [hhvm : Do /etc/hhvm/server.ini] ******************************************
changed: [yourhostname.com]

TASK [hhvm : Do /etc/hhvm/php.ini] *********************************************
changed: [yourhostname.com]

TASK [hhvm : Ensure HHVM is running] *******************************************
changed: [yourhostname.com]

TASK [php-fpm : Install PHP packages] ******************************************
changed: [yourhostname.com] => (item=[u'php5', u'php5-cli', u'php5-imagick', u'php5-curl', u'php5-gd', u'php5-fpm', u'php5-memcache', u'php5-memcached', u'php5-xdebug', u'phpunit'])

TASK [memcached : Install memcached server] ************************************
changed: [yourhostname.com]

TASK [memcached : Do memcached config] *****************************************
changed: [yourhostname.com]

TASK [percona : ensure /etc/mysql] *********************************************
ok: [yourhostname.com]

TASK [percona : Install Percona GPG key] ***************************************
changed: [yourhostname.com]

TASK [percona : Enable Percona repo] *******************************************
changed: [yourhostname.com]

TASK [percona : Install Percona server] ****************************************

Exclude from cache

This isn't issue, more like a question.... Is there any way to exclude custom function from being cached?
For example, exclude custom Wordpress function for page views counter because my counter doesn't work properly because of cacheing? I know there is a way to exclude all AJAX calls from varnish, but is there any way to exclude function directly... Thanks.

NO MORE HOSTS LEFT ****

Installing on a clean droplet (just with ELK) on Digital Ocean. Setup two hosts. After it failed, I tried:

--limit @playbook.retry

following the ansible playbook command -

sudo ansible-playbook -i hosts playbook.yml -c local

This is the error it throws at the php-fpm TASK:

NO MORE HOSTS LEFT *************************************************************

RUNNING HANDLER [hhvm : hhvm restart] ******************************************
to retry, use: --limit @playbook.retry

I tried to do a multi-site install of two WP instances. I'll back out now into just a single install. After I properly configured the two sites in the file hosts and the directories copied in host_vars, I was able to get past the PHP Task successfully but the memcached Task fails.

Upgrade varnish and nginx

Hello,

After installation of the mercury environment, is it possible to upgrade varnish and nginx to the latest version without breaking anything?

Thanks!

Swap

It is recommendable enable swap to VPS with 1GB RAM?

Admin Bar Missing

I've installed three different VPSes with this stack and on all of them the Wordpress admin bar is missing on the public pages.

Any ideas how to resolve this?

NO MORE HOSTS LEFT ****

Installing on a clean droplet (just with ELK) on Digital Ocean. Setup two hosts. I've tried the --limit @playbook.retry following the ansible playbook command - sudo ansible-playbook -i hosts playbook.yml -c local

This is the error it throws at the php-fpm TASK. I'll see if everything is running and plan to be on HHVM so it might be okay. If that doesn't work I'll go with an ELK free machine and setup ELK after nailing this. Here is the error:

NO MORE HOSTS LEFT *************************************************************

RUNNING HANDLER [hhvm : hhvm restart] ******************************************
to retry, use: --limit @playbook.retry

Failing at provision wp database step

Hi,

Very interested in getting this stack setup, but having major problems, I keep getting this problem every time:

failed: [domain.com] => {"failed": true}
msg: unable to connect, check login credentials (login_user, and login_password, which can be defined in ~/.my.cnf), check that mysql socket exists and mysql server is running

But I am going to migrate wordpress/woocommerce from existing server so I don't really care about installing wordpress.

On the server I see this in the browser:

Error 503 Service Unavailable

Service Unavailable

Guru Meditation:

XID: 675302223

Varnish cache server

I'm starting to think to destroy the droplet and start manually from scratch is the option :(

Unable to connect to MySQL when adding new site

I added one site already, now trying to add another, but I get this error:

TASK: [wordpress | Provision WP Database] *************************************
failed: [everyman.dk] => {"failed": true}
msg: unable to connect, check login_user and login_password are correct, or alternatively check ~/.my.cnf contains credentials

Am I doing something wrong or what?

[Request] Add ImageMagick

Considering this is a Wordpress setup I would recommend installing Imagick when PHP is installed.
ImageMagick provides better quality images (granted at the expensive of bigger files) and performance compared to the standard GD Library.

Wordpress itself searches first for ImageMagick, if it can't find it it will fall back to the GD Libary.

php-fpm/tasks/main.yml

name: Install PHP packages
run_once: true
apt: name={{ item }} state=present
with_items:
- php5
- php5-cli
- php5-gd
- php5-imagick
- php5-fpm
- php5-memcache
- php5-memcached
- php5-xdebug
- phpunit

upload theme

i tried to install this diy mercury stack to digitalocean droplet with your kind explanation. and i think it was done succesfully .
but i couldn’t upload my wordpress theme . i did almost everything in the google so that solve this issues but it’s still not work.
what can i do for it?? can you give me some advice?

Getting this error

~/hgv-deploy-full# sudo ansible-playbook -i hosts playbook.yml -c local

Traceback (most recent call last):
File "/usr/bin/ansible-playbook", line 324, in
sys.exit(main(sys.argv[1:]))
File "/usr/bin/ansible-playbook", line 157, in main
inventory = ansible.inventory.Inventory(options.inventory, vault_password=va ult_pass)
File "/usr/lib/pymodules/python2.7/ansible/inventory/init.py", line 149, i n init
host.vars = utils.combine_vars(host.vars, self.get_host_variables(host.name, vault_password=self._vault_password))
File "/usr/lib/pymodules/python2.7/ansible/inventory/init.py", line 448, i n get_host_variables
self._vars_per_host[hostname] = self._get_host_variables(hostname, vault_pas sword=vault_password)
File "/usr/lib/pymodules/python2.7/ansible/inventory/init.py", line 478, i n _get_host_variables
vars = utils.combine_vars(vars, self.get_host_vars(host))
File "/usr/lib/pymodules/python2.7/ansible/inventory/init.py", line 601, i n get_host_vars
return self._get_hostgroup_vars(host=host, group=None, new_pb_basedir=new_pb _basedir)
File "/usr/lib/pymodules/python2.7/ansible/inventory/init.py", line 650, i n _get_hostgroup_vars
results = utils.load_vars(base_path, results, vault_password=self._vault_pas sword)
File "/usr/lib/pymodules/python2.7/ansible/utils/init.py", line 1526, in l oad_vars
found, results = _load_vars_from_path(path, results, vault_password=vault_pa ssword)
File "/usr/lib/pymodules/python2.7/ansible/utils/init.py", line 1584, in _ load_vars_from_path
data = parse_yaml_from_file(path, vault_password=vault_password)
File "/usr/lib/pymodules/python2.7/ansible/utils/init.py", line 780, in pa rse_yaml_from_file
process_yaml_error(exc, data, path, show_content)
File "/usr/lib/pymodules/python2.7/ansible/utils/init.py", line 706, in pr ocess_yaml_error
probline = data.split("\n")[mark.line]
IndexError: list index out of range

Ubuntu 14.10/Nginx issue

Distributor ID: Ubuntu
Description: Ubuntu 14.10
Release: 14.10
Codename: utopic

failed: [yoursite.com] => {"failed": true}
msg: failure 1 running systemctl show for 'nginx.service': Failed to get D-Bus connection: No connection to service manager.

FATAL: all hosts have already failed -- aborting


Similar problem: http://stackoverflow.com/questions/27057992/nginx-cannot-restart-via-ansible

File: hgv-deploy-full/roles/nginx/tasks/main.yml

Change https://github.com/zach-adams/hgv-deploy-full/blob/master/roles/nginx/tasks/main.yml#L56

  • service: name=nginx state=started enabled=yes

to

  • service: name=nginx state=started

Dashboard notifications

Anybody know why in a fresh instalation of wordpress I have always the dashboard notifications?

Image of Yaktocat

If I accept the messages and reload the dashboard it appears again (maybe some cookie its not working)

Ansible not updating

The issue I am having is that Ansible is not properly updated when installing, and because only 1.7 supports run_once the user will receive the following error:
ERROR: run_once is not a legal parameter in an Ansible task or handler

To fix this issue I am running the following commands to install the latest version of Ansible:

$ sudo apt-get install software-properties-common
$ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt-get update
$ sudo apt-get install ansible

These commands will thus replace step 2, 3, and (partially) 4 on the Readme.MD.

Note: sotware-properties-common is the same as python-software-properties but for newer ubuntu distributions and is required to run apt-add-repository.

Off-topic: Not trying to fill your inbox with issues, but I am currently writing a Wordpress Deployment guide and one of the options is to use EasyEngine or your HGV - so you might hear from me so now and then ;).

Erroring on step 2 of 'Fix the stdin bug'.

Getting this error when running the playbook.

TASK [common : Fix the stdin bug, step 2] **************************************
fatal: [xxxxxx]: FAILED! => {"changed": false, "failed": true, "msg": "Destination /root/.profile does not exist !", "rc": 257}

*xxxxxx is a placeholder hostname

Thanks

Varnish and logged in on frontend

I have a problem where I cannot be logged in on frontend. I narrowed it down to be a problem with Varnish as when I turn Varnish off I can be logged in on frontend.

Admin is missing

Hello, and thanks for this great work.
I am testing your configuration and everything work fine on a linode server but there is no admin bar.
Are you running a custom wordpress install? how restore back the admin bar?

hhvm not running by default

In step 13 when you restart varnish and nginx services
Restart Varnish and Nginx with: sudo service varnish restart && sudo service nginx restart

then, you can check the varnish, nginx and hhvm status:

sudo service varnish status && sudo service nginx status && sudo service hhvm status

To check if hhvm is really running or not you can create a file 'for example': phpinfo.phpwith the function <?php phpinfo(); ?> in the root of the website, if you open the file with the browser and see...

  • server configs, variables, etc... -> you are not running hhvm
  • message Hip Hop -> you are running hvvm

to run hhvm you need to write sudo service hhvm start,

At this point with varnish, nginx and hhvm running, the wordpress dashboard doesnt work properly, related with issue #11

Pagespeed Mod

In anyway, how can I add pagespeed & redis work together with nginx in this script? Will it help overall performance?

I don't think any one can install this set up in Ubuntu 14.04 droplet as the instructions

The reason i says that, is because , I technically tried exactly the command on the fresh clean Ubuntu 14.04 server from Digital Ocean.

Every time, I have the same problems, Always stuck at

TASK [percona : Install Percona server] ****************************************

And then prompt some kind of Database creation error.

Anyone have this problems on Ubuntu 14.04?

MariaDB Support

Have you given any thoughts to switching the current DB (Percona DB) with, or adding support for, MariaDB?

Thank you,

No package matching 'hhvm' is available

root@vm2321:~/hgv-deploy-full# sudo ansible-playbook -i hosts playbook.yml -c local

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

GATHERING FACTS ***************************************************************
ok: [vstogesena.ru]

TASK: [common | Install necessary packages for proper system state] ***********
changed: [vstogesena.ru] => (item=sysv-rc-conf,python-apt,python-pycurl,python-mysqldb,git,curl,unzip,php5-mysql,traceroute,ack-grep,subversion,autojump,siege)

TASK: [common | Get Composer] *************************************************
changed: [vstogesena.ru]

TASK: [common | Install PsySH] ************************************************
changed: [vstogesena.ru]

TASK: [common | Install Boris] ************************************************
changed: [vstogesena.ru]

TASK: [common | Fix the stdin bug, step 1] ************************************
changed: [vstogesena.ru]

TASK: [common | Fix the stdin bug, step 2] ************************************
changed: [vstogesena.ru]

TASK: [common | Create swap file] *********************************************
changed: [vstogesena.ru]

TASK: [common | Setup swap area] **********************************************
changed: [vstogesena.ru]

TASK: [common | Change swap file permissions] *********************************
changed: [vstogesena.ru]

TASK: [common | Write swap entry in fstab] ************************************
changed: [vstogesena.ru]

TASK: [common | Swap on] ******************************************************
changed: [vstogesena.ru]

TASK: [hhvm | Enable HHVM repo key] *******************************************
changed: [vstogesena.ru]

TASK: [hhvm | Enable HHVM repo] ***********************************************
changed: [vstogesena.ru]

TASK: [hhvm | Install HHVM] ***************************************************
failed: [vstogesena.ru] => {"failed": true}
msg: No package matching 'hhvm' is available

FATAL: all hosts have already failed -- aborting

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

vstogesena.ru : ok=14 changed=13 unreachable=0 failed=1

PHP7.0 FPM

Would it be possible to get a branch of this with PHP7.0 FPM? I've tried working through it myself and keep running in to brick walls.

wp config file memcached

global $memecached_servers;
$memcached_servers =

On line 21,23 in roles/wordpress/templates/wp/local-config.php
Not sure if and how this even affects anything but seemed like a typo..

digital OCean ubuntu error

TASK [wordpress : Provision WP Database] ***************************************
fatal: [ifengshuo.com]: FAILED! => {"changed": false, "failed": true, "msg": "unable to find /root/.my.cnf. Exception message: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")"}

I have tries so many times, the same mistakes above

www site does not direct to non-www site

I have the problem when I install the whole setup everything works fine with the exception that it only works for the non-www sites which I used in the installation process. If I open the www.-version of a site it redirects to the first wordpress-site installed during the process but not to the non-www version.
There are various tutorials available like this one here https://www.digitalocean.com/community/tutorials/how-to-redirect-www-to-non-www-with-nginx-on-centos-7 on how to do a 301 redirect with nginx and I tried many different ways of redirecting but they either didn't work or even ended up in the server not functioning anymore.
I guess it is because of using varnish with nginx together it is more complicated that with nginx alone as it is outlined in this article: https://danielmiessler.com/blog/handling-redirects-with-varnish-and-nginx/
Could someone suggest a solution that works with this particular set-up?

Can not re run to install aditional WP installs

Can install singular, or multipul sites on 1st run, if trying to go back and re run this playbook, always fails at the sql creation

Its like the user and pass is being changed, when playbook completes and can no longer add to sql

Not used linux before, so apologize if this is simple solution i am missing

msg: unable to connect, check login credentials (login_user, and login_password, which can be defined in ~/.my.cnf), check that mysql socket exists and mysql server is running
-bash: syntax error near unexpected token `('

Errors during install

Good Evening,

I'm trying to provision a droplet on digital ocean using hgv-deploy-full to host several sites, but when I run the ansible playbook, i get the errors shown in this gist:

https://gist.github.com/erniebryant/1ed659d559748e3b2e70

I'm guessing i'm leaving out something, but i have no idea what... I've edited the hosts file to include all of the domains, and created entries (with separate database names) for each domain in the host_vars directory. The only changes I made to the output found in the gist is to find/replace the domain names with "domain1.com", as well as the service account names and passwords. Any help would be greatly appreciated.

Ernie

Swap Error

Hi,

This happens when i try to install, can you help me please?
Best wishes
Victor

root@server:~/hgv-deploy-full# sudo ansible-playbook -i hosts playbook.yml -c local --limit @playbook.retry
[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default).
This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

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

TASK [setup] *******************************************************************
ok: [elobservadormexico.com]

TASK [common : Install necessary packages for proper system state] *************
ok: [elobservadormexico.com] => (item=[u'sysv-rc-conf', u'python-apt', u'python-pycurl', u'python-mysqldb', u'git', u'curl', u'unzip', u'php5-mysql', u'traceroute', u'ack-grep', u'subversion', u'autojump', u'siege'])

TASK [common : Get Composer] ***************************************************
ok: [elobservadormexico.com]

TASK [common : Install PsySH] **************************************************
ok: [elobservadormexico.com]

TASK [common : Install Boris] **************************************************
ok: [elobservadormexico.com]

TASK [common : Fix the stdin bug, step 1] **************************************
ok: [elobservadormexico.com]

TASK [common : Fix the stdin bug, step 2] **************************************
ok: [elobservadormexico.com]

TASK [common : include] ********************************************************
included: /root/hgv-deploy-full/roles/common/tasks/swap.yml for elobservadormexico.com

TASK [common : Create swap file] ***********************************************
ok: [elobservadormexico.com]

TASK [common : Setup swap area] ************************************************
changed: [elobservadormexico.com]

TASK [common : Change swap file permissions] ***********************************
ok: [elobservadormexico.com]

TASK [common : Write swap entry in fstab] **************************************
ok: [elobservadormexico.com]

TASK [common : Swap on] ********************************************************
fatal: [elobservadormexico.com]: FAILED! => {"changed": true, "cmd": ["swapon", "/swapfile"], "delta": "0:00:00.005964", "end": "2016-04-25 18:16:45.094472", "failed": true, "rc": 255, "start": "2016-04-25 18:16:45.088508", "stderr": "swapon: /swapfile: swapon failed: Operation not permitted", "stdout": "", "stdout_lines": [], "warnings": []}
to retry, use: --limit @playbook.retry

PLAY RECAP *********************************************************************
elobservadormexico.com : ok=12 changed=1 unreachable=0 failed=1

Let's Encrypt

I tried to setup Let's Encrypt (with various method) but fail. Same method I am using for other server (not hgv) it's work find. Let's Encrypt failed challenge test although the folder are accessible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.