Created
October 5, 2017 00:35
-
-
Save s3w47m88/0a01cebe70623935868c7ee423a7bef6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ trellis git:(master) ✗ vagrant destroy | |
default: Are you sure you want to destroy the 'default' VM? [y/N] y | |
==> default: Forcing shutdown of VM... | |
==> default: Destroying VM and associated drives... | |
==> default: Pruning invalid NFS exports. Administrator privileges will be required... | |
Password: | |
==> default: [vagrant-hostmanager:guests] Updating hosts file on active guest virtual machines... | |
==> default: [vagrant-hostmanager:host] Updating hosts file on your workstation (password may be required)... | |
➜ trellis git:(master) ✗ vagrant up | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'bento/ubuntu-16.04'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Checking if box 'bento/ubuntu-16.04' is up to date... | |
==> default: A newer version of the box 'bento/ubuntu-16.04' is available! You currently | |
==> default: have version '2.2.9'. The latest is version '2.3.8'. Run | |
==> default: `vagrant box update` to update. | |
==> default: Setting the name of the VM: eclawncare.dev | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
default: Adapter 2: hostonly | |
==> default: Forwarding ports... | |
default: 22 (guest) => 2222 (host) (adapter 1) | |
==> default: Running 'pre-boot' VM customizations... | |
==> default: Booting VM... | |
==> default: Waiting for machine to boot. This may take a few minutes... | |
default: SSH address: 127.0.0.1:2222 | |
default: SSH username: vagrant | |
default: SSH auth method: private key | |
default: | |
default: Vagrant insecure key detected. Vagrant will automatically replace | |
default: this with a newly generated keypair for better security. | |
default: | |
default: Inserting generated public key within guest... | |
default: Removing insecure key from the guest if it's present... | |
default: Key inserted! Disconnecting and reconnecting using new SSH key... | |
==> default: Machine booted and ready! | |
==> default: Checking for guest additions in VM... | |
default: The guest additions on this VM do not match the installed version of | |
default: VirtualBox! In most cases this is fine, but in rare cases it can | |
default: prevent things such as shared folders from working properly. If you see | |
default: shared folder errors, please make sure the guest additions within the | |
default: virtual machine match the version of VirtualBox you have installed on | |
default: your host and reload your VM. | |
default: | |
default: Guest Additions Version: 5.0.26 | |
default: VirtualBox Version: 5.1 | |
==> default: Setting hostname... | |
==> default: Configuring and enabling network interfaces... | |
==> default: Exporting NFS shared folders... | |
==> default: Preparing to edit /etc/exports. Administrator privileges will be required... | |
==> default: Mounting NFS shared folders... | |
==> default: Mounting shared folders... | |
default: /vagrant => /Users/s3w47m88/Sites/eclawncare.com/trellis | |
==> default: Checking for bindfs in VM... | |
default: Package manager detected: apt-get | |
default: Fuse kernel module is installed | |
default: Fuse kernel module is loaded | |
==> default: Bindfs seems to not be installed on the virtual machine, installing now | |
default: Bindfs 1.12.6 is installed | |
==> default: Machine is ready to use bindfs! | |
==> default: Creating bind mounts after synced_folders... | |
default: /vagrant-nfs-eclawncare.dev => /srv/www/eclawncare.dev/current | |
default: /ansible-nfs => /home/vagrant/trellis | |
default: /home/vagrant/trellis/bin => /home/vagrant/trellis/bin | |
==> default: [vagrant-hostmanager:guests] Updating hosts file on active guest virtual machines... | |
==> default: [vagrant-hostmanager:host] Updating hosts file on your workstation (password may be required)... | |
==> default: Running provisioner: ansible... | |
Vagrant has automatically selected the compatibility mode '2.0' | |
according to the Ansible version installed (2.4.0.0). | |
Alternatively, the compatibility mode can be specified in your Vagrantfile: | |
https://www.vagrantup.com/docs/provisioning/ansible_common.html#compatibility_mode | |
default: Running ansible-galaxy... | |
- changing role composer from 1.6.1 to 1.6.1 | |
- downloading role 'composer', owned by geerlingguy | |
- downloading role from https://github.com/geerlingguy/ansible-role-composer/archive/1.6.1.tar.gz | |
- extracting composer to /Users/s3w47m88/Sites/eclawncare.com/trellis/vendor/roles/composer | |
- composer (1.6.1) was installed successfully | |
- changing role ntp from 1.5.2 to 1.5.2 | |
- downloading role 'ntp', owned by geerlingguy | |
- downloading role from https://github.com/geerlingguy/ansible-role-ntp/archive/1.5.2.tar.gz | |
- extracting ntp to /Users/s3w47m88/Sites/eclawncare.com/trellis/vendor/roles/ntp | |
- ntp (1.5.2) was installed successfully | |
- changing role logrotate from e7a498d to e7a498d | |
- downloading role 'logrotate', owned by nickhammond | |
- downloading role from https://github.com/nickhammond/ansible-logrotate/archive/e7a498d.tar.gz | |
- extracting logrotate to /Users/s3w47m88/Sites/eclawncare.com/trellis/vendor/roles/logrotate | |
- logrotate (e7a498d) was installed successfully | |
- changing role swapfile from 4850d8a to 4850d8a | |
- downloading role 'swapfile', owned by kamaln7 | |
- downloading role from https://github.com/kamaln7/ansible-swapfile/archive/4850d8a.tar.gz | |
- extracting swapfile to /Users/s3w47m88/Sites/eclawncare.com/trellis/vendor/roles/swapfile | |
- swapfile (4850d8a) was installed successfully | |
- changing role mailhog from 2.1.3 to 2.1.3 | |
- downloading role 'mailhog', owned by geerlingguy | |
- downloading role from https://github.com/geerlingguy/ansible-role-mailhog/archive/2.1.3.tar.gz | |
- extracting mailhog to /Users/s3w47m88/Sites/eclawncare.com/trellis/vendor/roles/mailhog | |
- mailhog (2.1.3) was installed successfully | |
[WARNING]: - dependency geerlingguy.daemonize from role mailhog differs from | |
already installed version (1.2.0), skipping | |
default: Running ansible-playbook... | |
[DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use | |
'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions. | |
This feature will be removed in a future release. Deprecation warnings can be | |
disabled by setting deprecation_warnings=False in ansible.cfg. | |
PLAY [WordPress Server: Install LEMP Stack with PHP 7.1 and MariaDB MySQL] ***** | |
TASK [Gathering Facts] ********************************************************* | |
ok: [default] | |
TASK [common : Validate wordpress_sites] *************************************** | |
skipping: [default] | |
TASK [common : Validate format of site_hosts] ********************************** | |
skipping: [default] => (item=eclawncare.dev) | |
TASK [common : Verify dict format for apt package component variables] ********* | |
skipping: [default] | |
TASK [common : Verify dict format for apt package combined variables] ********** | |
skipping: [default] | |
TASK [common : Validate Ubuntu version] **************************************** | |
skipping: [default] | |
TASK [common : Check whether passlib is needed] ******************************** | |
skipping: [default] | |
TASK [common : Retrieve local SSH client's settings per host] ****************** | |
ok: [default] | |
TASK [common : Validate compatible settings between SSH client and server] ***** | |
ok: [default] => { | |
"changed": false, | |
"failed": false, | |
"msg": "All assertions passed" | |
} | |
TASK [common : Checking essentials] ******************************************** | |
changed: [default] => (item=python-software-properties) | |
changed: [default] => (item=build-essential) | |
changed: [default] => (item=python-mysqldb) | |
changed: [default] => (item=libnss-myhostname) | |
ok: [default] => (item=dbus) | |
changed: [default] => (item=git-core) | |
ok: [default] => (item=python-pycurl) | |
changed: [default] => (item=curl) | |
TASK [common : Validate timezone variable] ************************************* | |
ok: [default] | |
TASK [common : Explain timezone error] ***************************************** | |
skipping: [default] | |
TASK [common : Add myhostname to nsswitch.conf to ensure resolvable hostname] *** | |
ok: [default] | |
TASK [common : Generate SSH key for vagrant user] ****************************** | |
changed: [default] | |
TASK [common : Retrieve SSH client IP] ***************************************** | |
skipping: [default] | |
TASK [fail2ban : ensure fail2ban is installed] ********************************* | |
changed: [default] | |
TASK [fail2ban : ensure fail2ban is configured] ******************************** | |
changed: [default] => (item=jail.local) | |
changed: [default] => (item=fail2ban.local) | |
TASK [fail2ban : ensure fail2ban starts on a fresh reboot] ********************* | |
ok: [default] | |
TASK [ferm : ensure ferm status is in debconf] ********************************* | |
changed: [default] | |
TASK [ferm : ensure ferm is installed] ***************************************** | |
changed: [default] | |
TASK [ferm : ensure configuration directories exist] *************************** | |
changed: [default] => (item=/etc/ferm/ferm.d) | |
changed: [default] => (item=/etc/ferm/filter-input.d) | |
TASK [ferm : ensure firewall is configured] ************************************ | |
changed: [default] => (item=etc/default/ferm) | |
changed: [default] => (item=etc/ferm/ferm.conf) | |
TASK [ferm : ensure iptables INPUT rules are removed] ************************** | |
skipping: [default] => (item={u'dport': [u'http', u'https'], u'type': u'dport_accept', u'filename': u'nginx_accept'}) | |
skipping: [default] => (item={u'dport': [u'ssh'], u'type': u'dport_accept', u'saddr': [u'10.0.2.2']}) | |
skipping: [default] => (item={u'dport': [u'ssh'], u'seconds': 300, u'hits': 20, u'type': u'dport_limit'}) | |
TASK [ferm : ensure iptables INPUT rules are added] **************************** | |
changed: [default] => (item={u'dport': [u'http', u'https'], u'type': u'dport_accept', u'filename': u'nginx_accept'}) | |
changed: [default] => (item={u'dport': [u'ssh'], u'type': u'dport_accept', u'saddr': [u'10.0.2.2']}) | |
changed: [default] => (item={u'dport': [u'ssh'], u'seconds': 300, u'hits': 20, u'type': u'dport_limit'}) | |
TASK [ferm : ensure iptables rules are enabled] ******************************** | |
skipping: [default] | |
TASK [ferm : ensure iptables rules are disabled] ******************************* | |
ok: [default] | |
TASK [ntp : Include OS-specific variables.] ************************************ | |
ok: [default] | |
TASK [ntp : Ensure NTP-related packages are installed.] ************************ | |
changed: [default] | |
TASK [ntp : Ensure tzdata package is installed (Linux).] *********************** | |
ok: [default] | |
TASK [ntp : Check if clock file exists.] *************************************** | |
skipping: [default] | |
TASK [ntp : Create clock file if it doesn't exist.] **************************** | |
skipping: [default] | |
TASK [ntp : Set timezone] ****************************************************** | |
changed: [default] | |
TASK [ntp : Ensure NTP is running and enabled as configured.] ****************** | |
ok: [default] | |
TASK [ntp : Ensure NTP is stopped and disabled as configured.] ***************** | |
skipping: [default] | |
TASK [ntp : Generate ntp.conf file] ******************************************** | |
changed: [default] | |
TASK [sshd : Ensure latest SSH server and client are installed] **************** | |
changed: [default] => (item=openssh-server) | |
ok: [default] => (item=openssh-client) | |
TASK [sshd : Create a secure sshd_config] ************************************** | |
changed: [default] | |
TASK [sshd : Create a secure ssh_config] *************************************** | |
changed: [default] | |
TASK [sshd : Remove Diffie-Hellman moduli of size < 2000] ********************** | |
changed: [default] | |
TASK [mariadb : Install MySQL client] ****************************************** | |
changed: [default] | |
TASK [mariadb : Install MySQL server] ****************************************** | |
changed: [default] | |
TASK [mariadb : Disable MariaDB binary logging] ******************************** | |
changed: [default] | |
TASK [mariadb : Set root user password] **************************************** | |
changed: [default] => (item=default) | |
changed: [default] => (item=127.0.0.1) | |
changed: [default] => (item=::1) | |
changed: [default] => (item=localhost) | |
TASK [mariadb : Copy .my.cnf file with root password credentials.] ************* | |
changed: [default] | |
TASK [mariadb : Delete anonymous MySQL server users] *************************** | |
ok: [default] => (item=localhost) | |
ok: [default] => (item=default) | |
ok: [default] => (item=eclawncare) | |
TASK [mariadb : Remove the test database] ************************************** | |
ok: [default] | |
TASK [geerlingguy.daemonize : Download daemonize archive.] ********************* | |
changed: [default] | |
TASK [geerlingguy.daemonize : Expand daemonize archive.] *********************** | |
changed: [default] | |
TASK [geerlingguy.daemonize : Check if daemonize is installed.] **************** | |
ok: [default] | |
TASK [geerlingguy.daemonize : Build daemonize.] ******************************** | |
changed: [default] => (item=./configure --prefix=/usr) | |
changed: [default] => (item=make) | |
changed: [default] => (item=make install) | |
TASK [mailhog : Ensure mailhog install directory exists.] ********************** | |
changed: [default] | |
TASK [mailhog : Download MailHog and mhsendmail binaries.] ********************* | |
System info: | |
Ansible 2.4.0.0; Vagrant 2.0.0; Darwin | |
Trellis at "Vagrant: Use DHCP by default" | |
--------------------------------------------------- | |
Connection failure: ('The read operation timed out',) | |
failed: [default] (item={u'url': u'https://github.com/mailhog/MailHog/releases/download/v0.2.1/MailHog_linux_amd64', u'dest': u'/opt/mailhog/mailhog'}) => {"changed": false, "dest": "/opt/mailhog/mailhog", "failed": true, "item": {"dest": "/opt/mailhog/mailhog", "url": "https://github.com/mailhog/MailHog/releases/download/v0.2.1/MailHog_linux_amd64"}, "state": "absent", "url": "https://github.com/mailhog/MailHog/releases/download/v0.2.1/MailHog_linux_amd64"} | |
--------------------------------------------------- | |
changed: [default] => (item={u'url': u'https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64', u'dest': u'/opt/mailhog/mhsendmail'}) | |
RUNNING HANDLER [fail2ban : restart fail2ban] ********************************** | |
changed: [default] | |
RUNNING HANDLER [ferm : restart ferm] ****************************************** | |
skipping: [default] | |
RUNNING HANDLER [ntp : restart ntp] ******************************************** | |
changed: [default] | |
RUNNING HANDLER [sshd : restart ssh] ******************************************* | |
changed: [default] | |
RUNNING HANDLER [mariadb : restart mysql server] ******************************* | |
changed: [default] | |
to retry, use: --limit @/Users/s3w47m88/Sites/eclawncare.com/trellis/dev.retry | |
PLAY RECAP ********************************************************************* | |
default : ok=42 changed=29 unreachable=0 failed=1 | |
Ansible failed to complete successfully. Any error output should be | |
visible above. Please fix these errors and try again. | |
➜ trellis git:(master) ✗ vagrant up | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Checking if box 'bento/ubuntu-16.04' is up to date... | |
==> default: A newer version of the box 'bento/ubuntu-16.04' is available! You currently | |
==> default: have version '2.2.9'. The latest is version '2.3.8'. Run | |
==> default: `vagrant box update` to update. | |
==> default: [vagrant-hostmanager:guests] Updating hosts file on active guest virtual machines... | |
==> default: [vagrant-hostmanager:host] Updating hosts file on your workstation (password may be required)... | |
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision` | |
==> default: flag to force provisioning. Provisioners marked to run always will still run. | |
==> default: Machine 'default' has a post `vagrant up` message. This is a message | |
==> default: from the creator of the Vagrantfile, and not from Vagrant itself: | |
==> default: | |
==> default: Your Trellis Vagrant box is ready to use! | |
==> default: * Composer and WP-CLI commands need to be run on the virtual machine | |
==> default: for any post-provision modifications. | |
==> default: * You can SSH into the machine with `vagrant ssh`. | |
==> default: * Then navigate to your WordPress sites at `/srv/www` | |
==> default: or to your Trellis files at `/home/vagrant/trellis`. | |
➜ trellis git:(master) ✗ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment