Skip to content

Instantly share code, notes, and snippets.

@s3w47m88
Created April 12, 2017 19:20
Show Gist options
  • Save s3w47m88/6861f43bff15a5f4b83d39c95543be82 to your computer and use it in GitHub Desktop.
Save s3w47m88/6861f43bff15a5f4b83d39c95543be82 to your computer and use it in GitHub Desktop.
➜ trellis git:(master) ✗ ansible-playbook server.yml -e env=production --tags wordpress -vvvv
Using /Users/spencerhill/Sites/kangapestcontrol.com/trellis/ansible.cfg as config file
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/common/tasks/disable_challenge_sites.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/common/tasks/reload_nginx.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/users/tasks/connection-warnings.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/vendor/roles/composer/tasks/global-require.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/letsencrypt/tasks/setup.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/letsencrypt/tasks/nginx.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/letsencrypt/tasks/certificates.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/database.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/self-signed-certificate.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/nginx-includes.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/nginx.yml
Loading callback plugin output of type stdout, v2.0 from /usr/local/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
PLAYBOOK: server.yml ***********************************************************
4 plays in server.yml
PLAY [Ensure necessary variables are defined] **********************************
PLAY [Test Connection and Determine Remote User] *******************************
TASK [connection : Require manual definition of remote-user] *******************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/connection/tasks/main.yml:2
skipping: [kangapestcontrol.com] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [connection : Specify preferred HostKeyAlgorithms for unknown hosts] ******
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/connection/tasks/main.yml:9
skipping: [kangapestcontrol.com] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [connection : Check whether Ansible can connect as root] ******************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/connection/tasks/main.yml:18
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/commands/command.py
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: spencerhill
<localhost> EXEC /bin/sh -c '/usr/local/opt/python/bin/python2.7 && sleep 0'
ok: [kangapestcontrol.com -> localhost] => {
"changed": false,
"cmd": [
"ansible",
"kangapestcontrol.com",
"-m",
"raw",
"-a",
"whoami",
"-u",
"root",
"--ssh-extra-args=",
"--connection=smart",
"--timeout=10",
"--inventory-file=hosts",
"-vvvv"
],
"delta": "0:00:01.074689",
"end": "2017-04-12 12:19:33.813249",
"failed": false,
"failed_when_result": false,
"invocation": {
"module_args": {
"_raw_params": "ansible kangapestcontrol.com -m raw -a whoami -u root\n --ssh-extra-args=\"\"\n --connection='smart' --timeout='10' --inventory-file='hosts' -vvvv",
"_uses_shell": false,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"warn": true
},
"module_name": "command"
},
"rc": 0,
"start": "2017-04-12 12:19:32.738560",
"stderr": "",
"stdout": "Using /Users/spencerhill/Sites/kangapestcontrol.com/trellis/ansible.cfg as config file\n\u001b[0;34mLoading callback plugin minimal of type stdout, v2.0 from /usr/local/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc\u001b[0m\n\u001b[0;34m<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root\u001b[0m\n\u001b[0;34m<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r -tt kangapestcontrol.com whoami\u001b[0m\n\u001b[0;32mkangapestcontrol.com | SUCCESS | rc=0 >>\nroot\r\nOpenSSH_7.4p1, LibreSSL 2.5.0\r\ndebug1: Reading configuration data /Users/spencerhill/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 10211\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to kangapestcontrol.com closed.\r\n\n\u001b[0m",
"stdout_lines": [
"Using /Users/spencerhill/Sites/kangapestcontrol.com/trellis/ansible.cfg as config file",
"\u001b[0;34mLoading callback plugin minimal of type stdout, v2.0 from /usr/local/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc\u001b[0m",
"\u001b[0;34m<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root\u001b[0m",
"\u001b[0;34m<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r -tt kangapestcontrol.com whoami\u001b[0m",
"\u001b[0;32mkangapestcontrol.com | SUCCESS | rc=0 >>",
"root",
"OpenSSH_7.4p1, LibreSSL 2.5.0",
"debug1: Reading configuration data /Users/spencerhill/.ssh/config",
"debug1: Reading configuration data /etc/ssh/ssh_config",
"debug1: auto-mux: Trying existing master",
"debug2: fd 3 setting O_NONBLOCK",
"debug2: mux_client_hello_exchange: master version 4",
"debug3: mux_client_forwards: request forwardings: 0 local, 0 remote",
"debug3: mux_client_request_session: entering",
"debug3: mux_client_request_alive: entering",
"debug3: mux_client_request_alive: done pid = 10211",
"debug3: mux_client_request_session: session request sent",
"debug1: mux_client_request_session: master session id: 2",
"debug3: mux_client_read_packet: read header failed: Broken pipe",
"debug2: Received exit status from master 0",
"Shared connection to kangapestcontrol.com closed.",
"",
"\u001b[0m"
],
"warnings": []
}
TASK [connection : Warn about change in host keys] *****************************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/connection/tasks/main.yml:29
skipping: [kangapestcontrol.com] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [connection : Set remote user for each host] ******************************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/connection/tasks/main.yml:53
ok: [kangapestcontrol.com] => {
"ansible_facts": {
"ansible_user": "root"
},
"changed": false,
"invocation": {
"module_args": {
"ansible_user": "root"
},
"module_name": "set_fact"
}
}
TASK [connection : Announce which user was selected] ***************************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/connection/tasks/main.yml:58
Note: Ansible will attempt connections as user = root
ok: [kangapestcontrol.com] => {}
TASK [connection : Load become password] ***************************************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/connection/tasks/main.yml:76
skipping: [kangapestcontrol.com] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"}
PLAY [Install prerequisites] ***************************************************
PLAY [WordPress Server - Install LEMP Stack with PHP 7.1 and MariaDB MySQL] ****
TASK [setup] *******************************************************************
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/system/setup.py
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
ok: [kangapestcontrol.com]
TASK [common : Validate wordpress_sites] ***************************************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/common/tasks/main.yml:2
skipping: [kangapestcontrol.com] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [common : Validate format of site_hosts] **********************************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/common/tasks/main.yml:8
skipping: [kangapestcontrol.com] => (item={'key': u'kangapestcontrol.com', 'value': {u'repo_subtree_path': u'site', u'multisite': {u'enabled': False}, u'cache': {u'enabled': False}, u'repo': u'[email protected]:s3w47m88/kangapestcontrol.com.git', u'ssl': {u'enabled': True, u'provider': u'letsencrypt'}, u'local_path': u'../site', u'branch': u'master', u'site_hosts': [{u'redirects': [u'www.kangapestcontrol.com'], u'canonical': u'kangapestcontrol.com'}]}}) => {
"changed": false,
"item": {
"key": "kangapestcontrol.com",
"value": {
"branch": "master",
"cache": {
"enabled": false
},
"local_path": "../site",
"multisite": {
"enabled": false
},
"repo": "[email protected]:s3w47m88/kangapestcontrol.com.git",
"repo_subtree_path": "site",
"site_hosts": [
{
"canonical": "kangapestcontrol.com",
"redirects": [
"www.kangapestcontrol.com"
]
}
],
"ssl": {
"enabled": true,
"provider": "letsencrypt"
}
}
},
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [letsencrypt : include] ***************************************************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/letsencrypt/tasks/nginx.yml:34
included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/common/tasks/reload_nginx.yml for kangapestcontrol.com
TASK [letsencrypt : Generate Lets Encrypt certificate IDs] *********************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/letsencrypt/tasks/certificates.yml:16
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/commands/command.py
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
ok: [kangapestcontrol.com] => (item={'key': u'kangapestcontrol.com', 'value': {u'repo_subtree_path': u'site', u'multisite': {u'enabled': False}, u'cache': {u'enabled': False}, u'repo': u'[email protected]:s3w47m88/kangapestcontrol.com.git', u'ssl': {u'enabled': True, u'provider': u'letsencrypt'}, u'local_path': u'../site', u'branch': u'master', u'site_hosts': [{u'redirects': [u'www.kangapestcontrol.com'], u'canonical': u'kangapestcontrol.com'}]}}) => {
"changed": false,
"cmd": "echo \"kangapestcontrol.com www.kangapestcontrol.com\\nhttps://acme-v01.api.letsencrypt.org\\n5a7b4e79bc9bd5b51739c0d8aaf644f62cc440e6\\ne446c5e9dbef9d09ac9f7027c034602492437a05ff6c40011d7235fca639c79a\" |\n cat /var/lib/letsencrypt/account.key /etc/nginx/ssl/letsencrypt/kangapestcontrol.com.key - |\n md5sum | cut -c -7",
"delta": "0:00:00.005296",
"end": "2017-04-12 19:19:35.417942",
"invocation": {
"module_args": {
"_raw_params": "echo \"kangapestcontrol.com www.kangapestcontrol.com\\nhttps://acme-v01.api.letsencrypt.org\\n5a7b4e79bc9bd5b51739c0d8aaf644f62cc440e6\\ne446c5e9dbef9d09ac9f7027c034602492437a05ff6c40011d7235fca639c79a\" |\n cat /var/lib/letsencrypt/account.key /etc/nginx/ssl/letsencrypt/kangapestcontrol.com.key - |\n md5sum | cut -c -7",
"_uses_shell": true,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"warn": true
},
"module_name": "command"
},
"item": {
"key": "kangapestcontrol.com",
"value": {
"branch": "master",
"cache": {
"enabled": false
},
"local_path": "../site",
"multisite": {
"enabled": false
},
"repo": "[email protected]:s3w47m88/kangapestcontrol.com.git",
"repo_subtree_path": "site",
"site_hosts": [
{
"canonical": "kangapestcontrol.com",
"redirects": [
"www.kangapestcontrol.com"
]
}
],
"ssl": {
"enabled": true,
"provider": "letsencrypt"
}
}
},
"rc": 0,
"start": "2017-04-12 19:19:35.412646",
"stderr": "",
"stdout": "59637ae",
"stdout_lines": [
"59637ae"
],
"warnings": []
}
TASK [wordpress-setup : Create database of sites] ******************************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/database.yml:3
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/database/mysql/mysql_db.py
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
ok: [kangapestcontrol.com] => (item={'key': u'kangapestcontrol.com', 'value': {u'repo_subtree_path': u'site', u'multisite': {u'enabled': False}, u'cache': {u'enabled': False}, u'repo': u'[email protected]:s3w47m88/kangapestcontrol.com.git', u'ssl': {u'enabled': True, u'provider': u'letsencrypt'}, u'local_path': u'../site', u'branch': u'master', u'site_hosts': [{u'redirects': [u'www.kangapestcontrol.com'], u'canonical': u'kangapestcontrol.com'}]}}) => {
"changed": false,
"db": "kangapestcontrol_com_production",
"invocation": {
"module_args": {
"collation": "",
"config_file": "/root/.my.cnf",
"connect_timeout": 30,
"encoding": "",
"login_host": "localhost",
"login_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"login_port": 3306,
"login_unix_socket": null,
"login_user": "root",
"name": "kangapestcontrol_com_production",
"quick": true,
"single_transaction": false,
"ssl_ca": null,
"ssl_cert": null,
"ssl_key": null,
"state": "present",
"target": null
},
"module_name": "mysql_db"
},
"item": {
"key": "kangapestcontrol.com",
"value": {
"branch": "master",
"cache": {
"enabled": false
},
"local_path": "../site",
"multisite": {
"enabled": false
},
"repo": "[email protected]:s3w47m88/kangapestcontrol.com.git",
"repo_subtree_path": "site",
"site_hosts": [
{
"canonical": "kangapestcontrol.com",
"redirects": [
"www.kangapestcontrol.com"
]
}
],
"ssl": {
"enabled": true,
"provider": "letsencrypt"
}
}
}
}
TASK [wordpress-setup : Create/assign database user to db and grant permissions] ***
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/database.yml:12
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/database/mysql/mysql_user.py
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
ok: [kangapestcontrol.com] => (item={'key': u'kangapestcontrol.com', 'value': {u'repo_subtree_path': u'site', u'multisite': {u'enabled': False}, u'cache': {u'enabled': False}, u'repo': u'[email protected]:s3w47m88/kangapestcontrol.com.git', u'ssl': {u'enabled': True, u'provider': u'letsencrypt'}, u'local_path': u'../site', u'branch': u'master', u'site_hosts': [{u'redirects': [u'www.kangapestcontrol.com'], u'canonical': u'kangapestcontrol.com'}]}}) => {
"changed": false,
"invocation": {
"module_args": {
"append_privs": true,
"check_implicit_admin": false,
"config_file": "/root/.my.cnf",
"connect_timeout": 30,
"encrypted": false,
"host": "localhost",
"host_all": false,
"login_host": "localhost",
"login_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"login_port": 3306,
"login_unix_socket": null,
"login_user": "root",
"name": "kangapestcontrol_com",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"priv": "kangapestcontrol_com_production.*:ALL",
"sql_log_bin": true,
"ssl_ca": null,
"ssl_cert": null,
"ssl_key": null,
"state": "present",
"update_password": "always",
"user": "kangapestcontrol_com"
},
"module_name": "mysql_user"
},
"item": {
"key": "kangapestcontrol.com",
"value": {
"branch": "master",
"cache": {
"enabled": false
},
"local_path": "../site",
"multisite": {
"enabled": false
},
"repo": "[email protected]:s3w47m88/kangapestcontrol.com.git",
"repo_subtree_path": "site",
"site_hosts": [
{
"canonical": "kangapestcontrol.com",
"redirects": [
"www.kangapestcontrol.com"
]
}
],
"ssl": {
"enabled": true,
"provider": "letsencrypt"
}
}
},
"user": "kangapestcontrol_com"
}
TASK [wordpress-setup : Generate self-signed certificates] *********************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/self-signed-certificate.yml:2
skipping: [kangapestcontrol.com] => (item={'key': u'kangapestcontrol.com', 'value': {u'repo_subtree_path': u'site', u'multisite': {u'enabled': False}, u'cache': {u'enabled': False}, u'repo': u'[email protected]:s3w47m88/kangapestcontrol.com.git', u'ssl': {u'enabled': True, u'provider': u'letsencrypt'}, u'local_path': u'../site', u'branch': u'master', u'site_hosts': [{u'redirects': [u'www.kangapestcontrol.com'], u'canonical': u'kangapestcontrol.com'}]}}) => {
"changed": false,
"item": {
"key": "kangapestcontrol.com",
"value": {
"branch": "master",
"cache": {
"enabled": false
},
"local_path": "../site",
"multisite": {
"enabled": false
},
"repo": "[email protected]:s3w47m88/kangapestcontrol.com.git",
"repo_subtree_path": "site",
"site_hosts": [
{
"canonical": "kangapestcontrol.com",
"redirects": [
"www.kangapestcontrol.com"
]
}
],
"ssl": {
"enabled": true,
"provider": "letsencrypt"
}
}
},
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [wordpress-setup : Create web root] ***************************************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/main.yml:7
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/files/file.py
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
ok: [kangapestcontrol.com] => {
"changed": false,
"diff": {
"after": {
"path": "/srv/www"
},
"before": {
"path": "/srv/www"
}
},
"gid": 33,
"group": "www-data",
"invocation": {
"module_args": {
"backup": null,
"content": null,
"delimiter": null,
"diff_peek": null,
"directory_mode": null,
"follow": false,
"force": false,
"group": "www-data",
"mode": 493,
"original_basename": null,
"owner": "web",
"path": "/srv/www",
"recurse": false,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "directory",
"unsafe_writes": null,
"validate": null
},
"module_name": "file"
},
"mode": "0755",
"owner": "web",
"path": "/srv/www",
"size": 4096,
"state": "directory",
"uid": 1000
}
TASK [wordpress-setup : Create logs folder of sites] ***************************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/main.yml:15
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/files/file.py
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
ok: [kangapestcontrol.com] => (item={'key': u'kangapestcontrol.com', 'value': {u'repo_subtree_path': u'site', u'multisite': {u'enabled': False}, u'cache': {u'enabled': False}, u'repo': u'[email protected]:s3w47m88/kangapestcontrol.com.git', u'ssl': {u'enabled': True, u'provider': u'letsencrypt'}, u'local_path': u'../site', u'branch': u'master', u'site_hosts': [{u'redirects': [u'www.kangapestcontrol.com'], u'canonical': u'kangapestcontrol.com'}]}}) => {
"changed": false,
"diff": {
"after": {
"path": "/srv/www/kangapestcontrol.com/logs"
},
"before": {
"path": "/srv/www/kangapestcontrol.com/logs"
}
},
"gid": 33,
"group": "www-data",
"invocation": {
"module_args": {
"backup": null,
"content": null,
"delimiter": null,
"diff_peek": null,
"directory_mode": null,
"follow": false,
"force": false,
"group": "www-data",
"mode": 493,
"original_basename": null,
"owner": "web",
"path": "/srv/www/kangapestcontrol.com/logs",
"recurse": false,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "directory",
"unsafe_writes": null,
"validate": null
},
"module_name": "file"
},
"item": {
"key": "kangapestcontrol.com",
"value": {
"branch": "master",
"cache": {
"enabled": false
},
"local_path": "../site",
"multisite": {
"enabled": false
},
"repo": "[email protected]:s3w47m88/kangapestcontrol.com.git",
"repo_subtree_path": "site",
"site_hosts": [
{
"canonical": "kangapestcontrol.com",
"redirects": [
"www.kangapestcontrol.com"
]
}
],
"ssl": {
"enabled": true,
"provider": "letsencrypt"
}
}
},
"mode": "0755",
"owner": "web",
"path": "/srv/www/kangapestcontrol.com/logs",
"size": 4096,
"state": "directory",
"uid": 1000
}
TASK [wordpress-setup : Create WordPress php-fpm configuration file] ***********
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/main.yml:24
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1492024778.36-4410169917118 `" && echo ansible-tmp-1492024778.36-4410169917118="` echo ~/.ansible/tmp/ansible-tmp-1492024778.36-4410169917118 `" ) && sleep 0'"'"''
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/files/stat.py
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/files/file.py
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1492024778.36-4410169917118/ > /dev/null 2>&1 && sleep 0'"'"''
ok: [kangapestcontrol.com] => {
"changed": false,
"diff": {
"after": {
"path": "/etc/php/7.1/fpm/pool.d/wordpress.conf"
},
"before": {
"path": "/etc/php/7.1/fpm/pool.d/wordpress.conf"
}
},
"gid": 0,
"group": "root",
"invocation": {
"module_args": {
"backup": null,
"content": null,
"delimiter": null,
"dest": "/etc/php/7.1/fpm/pool.d/wordpress.conf",
"diff_peek": null,
"directory_mode": null,
"follow": true,
"force": false,
"group": null,
"mode": null,
"original_basename": "php-fpm.conf.j2",
"owner": null,
"path": "/etc/php/7.1/fpm/pool.d/wordpress.conf",
"recurse": false,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": null,
"unsafe_writes": null,
"validate": null
}
},
"mode": "0644",
"owner": "root",
"path": "/etc/php/7.1/fpm/pool.d/wordpress.conf",
"size": 397,
"state": "file",
"uid": 0
}
TASK [wordpress-setup : Disable default PHP-FPM pool] **************************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/main.yml:30
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/commands/command.py
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
ok: [kangapestcontrol.com] => {
"changed": false,
"cmd": "mv /etc/php/7.1/fpm/pool.d/www.conf /etc/php/7.1/fpm/pool.d/www.disabled",
"invocation": {
"module_args": {
"_raw_params": "mv /etc/php/7.1/fpm/pool.d/www.conf /etc/php/7.1/fpm/pool.d/www.disabled",
"_uses_shell": false,
"chdir": null,
"creates": "/etc/php/7.1/fpm/pool.d/www.disabled",
"executable": null,
"removes": null,
"warn": true
},
"module_name": "command"
},
"rc": 0,
"stdout": "skipped, since /etc/php/7.1/fpm/pool.d/www.disabled exists",
"stdout_lines": [
"skipped, since /etc/php/7.1/fpm/pool.d/www.disabled exists"
]
}
TASK [wordpress-setup : Build list of Nginx includes templates] ****************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/nginx-includes.yml:2
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/files/find.py
<kangapestcontrol.com> ESTABLISH LOCAL CONNECTION FOR USER: spencerhill
<kangapestcontrol.com> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
ok: [kangapestcontrol.com] => {
"changed": false,
"examined": 0,
"files": [],
"invocation": {
"module_args": {
"age": null,
"age_stamp": "mtime",
"contains": null,
"file_type": "file",
"follow": false,
"get_checksum": false,
"hidden": false,
"paths": [
"nginx-includes",
"roles/wordpress-setup/templates/includes.d"
],
"pattern": "*.conf.j2",
"patterns": [
"*.conf.j2"
],
"recurse": true,
"size": null,
"use_regex": false
},
"module_name": "find"
},
"matched": 0,
"msg": "nginx-includes was skipped as it does not seem to be a valid directory or it cannot be accessed\nroles/wordpress-setup/templates/includes.d was skipped as it does not seem to be a valid directory or it cannot be accessed\n"
}
TASK [wordpress-setup : Warn about deprecated Nginx includes directory] ********
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/nginx-includes.yml:13
skipping: [kangapestcontrol.com] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [wordpress-setup : Create includes.d directories] *************************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/nginx-includes.yml:18
TASK [wordpress-setup : Template files out to includes.d] **********************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/nginx-includes.yml:29
TASK [wordpress-setup : Retrieve list of existing files in includes.d] *********
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/nginx-includes.yml:36
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/files/find.py
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
ok: [kangapestcontrol.com] => {
"changed": false,
"examined": 0,
"files": [],
"invocation": {
"module_args": {
"age": null,
"age_stamp": "mtime",
"contains": null,
"file_type": "file",
"follow": false,
"get_checksum": false,
"hidden": false,
"paths": [
"/etc/nginx/includes.d"
],
"pattern": "*.conf",
"patterns": [
"*.conf"
],
"recurse": true,
"size": null,
"use_regex": false
},
"module_name": "find"
},
"matched": 0,
"msg": "/etc/nginx/includes.d was skipped as it does not seem to be a valid directory or it cannot be accessed\n"
}
TASK [wordpress-setup : Remove unmanaged files from includes.d] ****************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/nginx-includes.yml:44
TASK [wordpress-setup : Copy SSL cert] *****************************************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/nginx.yml:2
skipping: [kangapestcontrol.com] => (item={'key': u'kangapestcontrol.com', 'value': {u'repo_subtree_path': u'site', u'multisite': {u'enabled': False}, u'cache': {u'enabled': False}, u'repo': u'[email protected]:s3w47m88/kangapestcontrol.com.git', u'ssl': {u'enabled': True, u'provider': u'letsencrypt'}, u'local_path': u'../site', u'branch': u'master', u'site_hosts': [{u'redirects': [u'www.kangapestcontrol.com'], u'canonical': u'kangapestcontrol.com'}]}}) => {
"changed": false,
"item": {
"key": "kangapestcontrol.com",
"value": {
"branch": "master",
"cache": {
"enabled": false
},
"local_path": "../site",
"multisite": {
"enabled": false
},
"repo": "[email protected]:s3w47m88/kangapestcontrol.com.git",
"repo_subtree_path": "site",
"site_hosts": [
{
"canonical": "kangapestcontrol.com",
"redirects": [
"www.kangapestcontrol.com"
]
}
],
"ssl": {
"enabled": true,
"provider": "letsencrypt"
}
}
},
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [wordpress-setup : Copy SSL key] ******************************************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/nginx.yml:10
skipping: [kangapestcontrol.com] => (item={'key': u'kangapestcontrol.com', 'value': {u'repo_subtree_path': u'site', u'multisite': {u'enabled': False}, u'cache': {u'enabled': False}, u'repo': u'[email protected]:s3w47m88/kangapestcontrol.com.git', u'ssl': {u'enabled': True, u'provider': u'letsencrypt'}, u'local_path': u'../site', u'branch': u'master', u'site_hosts': [{u'redirects': [u'www.kangapestcontrol.com'], u'canonical': u'kangapestcontrol.com'}]}}) => {
"changed": false,
"item": {
"key": "kangapestcontrol.com",
"value": {
"branch": "master",
"cache": {
"enabled": false
},
"local_path": "../site",
"multisite": {
"enabled": false
},
"repo": "[email protected]:s3w47m88/kangapestcontrol.com.git",
"repo_subtree_path": "site",
"site_hosts": [
{
"canonical": "kangapestcontrol.com",
"redirects": [
"www.kangapestcontrol.com"
]
}
],
"ssl": {
"enabled": true,
"provider": "letsencrypt"
}
}
},
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [wordpress-setup : include] ***********************************************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/nginx.yml:18
included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/common/tasks/disable_challenge_sites.yml for kangapestcontrol.com
TASK [wordpress-setup : disable temporary challenge sites] *********************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/common/tasks/disable_challenge_sites.yml:2
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/files/file.py
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
ok: [kangapestcontrol.com] => (item=kangapestcontrol.com) => {
"changed": false,
"invocation": {
"module_args": {
"backup": null,
"content": null,
"delimiter": null,
"diff_peek": null,
"directory_mode": null,
"follow": false,
"force": false,
"group": null,
"mode": null,
"original_basename": null,
"owner": null,
"path": "/etc/nginx/sites-enabled/letsencrypt-kangapestcontrol.com.conf",
"recurse": false,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "absent",
"unsafe_writes": null,
"validate": null
},
"module_name": "file"
},
"item": "kangapestcontrol.com",
"path": "/etc/nginx/sites-enabled/letsencrypt-kangapestcontrol.com.conf",
"state": "absent"
}
TASK [wordpress-setup : Create Nginx conf for challenges location] *************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/nginx.yml:20
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1492024781.43-109679830569719 `" && echo ansible-tmp-1492024781.43-109679830569719="` echo ~/.ansible/tmp/ansible-tmp-1492024781.43-109679830569719 `" ) && sleep 0'"'"''
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/files/stat.py
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/files/file.py
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1492024781.43-109679830569719/ > /dev/null 2>&1 && sleep 0'"'"''
ok: [kangapestcontrol.com] => {
"changed": false,
"diff": {
"after": {
"path": "/etc/nginx/acme-challenge-location.conf"
},
"before": {
"path": "/etc/nginx/acme-challenge-location.conf"
}
},
"gid": 0,
"group": "root",
"invocation": {
"module_args": {
"backup": null,
"content": null,
"delimiter": null,
"dest": "/etc/nginx/acme-challenge-location.conf",
"diff_peek": null,
"directory_mode": null,
"follow": true,
"force": false,
"group": null,
"mode": null,
"original_basename": "acme-challenge-location.conf.j2",
"owner": null,
"path": "/etc/nginx/acme-challenge-location.conf",
"recurse": false,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": null,
"unsafe_writes": null,
"validate": null
}
},
"mode": "0644",
"owner": "root",
"path": "/etc/nginx/acme-challenge-location.conf",
"size": 99,
"state": "file",
"uid": 0
}
TASK [wordpress-setup : Create WordPress configuration for Nginx] **************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/nginx.yml:26
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1492024782.29-55130941206833 `" && echo ansible-tmp-1492024782.29-55130941206833="` echo ~/.ansible/tmp/ansible-tmp-1492024782.29-55130941206833 `" ) && sleep 0'"'"''
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/files/stat.py
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/files/file.py
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1492024782.29-55130941206833/ > /dev/null 2>&1 && sleep 0'"'"''
ok: [kangapestcontrol.com] => (item={'key': u'kangapestcontrol.com', 'value': {u'repo_subtree_path': u'site', u'multisite': {u'enabled': False}, u'cache': {u'enabled': False}, u'repo': u'[email protected]:s3w47m88/kangapestcontrol.com.git', u'ssl': {u'enabled': True, u'provider': u'letsencrypt'}, u'local_path': u'../site', u'branch': u'master', u'site_hosts': [{u'redirects': [u'www.kangapestcontrol.com'], u'canonical': u'kangapestcontrol.com'}]}}) => {
"changed": false,
"diff": {
"after": {
"path": "/etc/nginx/sites-available/kangapestcontrol.com.conf"
},
"before": {
"path": "/etc/nginx/sites-available/kangapestcontrol.com.conf"
}
},
"gid": 0,
"group": "root",
"invocation": {
"module_args": {
"backup": null,
"content": null,
"delimiter": null,
"dest": "/etc/nginx/sites-available/kangapestcontrol.com.conf",
"diff_peek": null,
"directory_mode": null,
"follow": true,
"force": false,
"group": null,
"mode": null,
"original_basename": "wordpress-site.conf.j2",
"owner": null,
"path": "/etc/nginx/sites-available/kangapestcontrol.com.conf",
"recurse": false,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": null,
"unsafe_writes": null,
"validate": null
}
},
"item": {
"key": "kangapestcontrol.com",
"value": {
"branch": "master",
"cache": {
"enabled": false
},
"local_path": "../site",
"multisite": {
"enabled": false
},
"repo": "[email protected]:s3w47m88/kangapestcontrol.com.git",
"repo_subtree_path": "site",
"site_hosts": [
{
"canonical": "kangapestcontrol.com",
"redirects": [
"www.kangapestcontrol.com"
]
}
],
"ssl": {
"enabled": true,
"provider": "letsencrypt"
}
}
},
"mode": "0644",
"owner": "root",
"path": "/etc/nginx/sites-available/kangapestcontrol.com.conf",
"size": 2587,
"state": "file",
"uid": 0
}
TASK [wordpress-setup : Enable WordPress site] *********************************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/nginx.yml:34
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/files/file.py
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
ok: [kangapestcontrol.com] => (item={'key': u'kangapestcontrol.com', 'value': {u'repo_subtree_path': u'site', u'multisite': {u'enabled': False}, u'cache': {u'enabled': False}, u'repo': u'[email protected]:s3w47m88/kangapestcontrol.com.git', u'ssl': {u'enabled': True, u'provider': u'letsencrypt'}, u'local_path': u'../site', u'branch': u'master', u'site_hosts': [{u'redirects': [u'www.kangapestcontrol.com'], u'canonical': u'kangapestcontrol.com'}]}}) => {
"changed": false,
"dest": "/etc/nginx/sites-enabled/kangapestcontrol.com.conf",
"diff": {
"after": {
"path": "/etc/nginx/sites-enabled/kangapestcontrol.com.conf"
},
"before": {
"path": "/etc/nginx/sites-enabled/kangapestcontrol.com.conf"
}
},
"gid": 0,
"group": "root",
"invocation": {
"module_args": {
"backup": null,
"content": null,
"delimiter": null,
"dest": "/etc/nginx/sites-enabled/kangapestcontrol.com.conf",
"diff_peek": null,
"directory_mode": null,
"follow": false,
"force": false,
"group": "root",
"mode": null,
"original_basename": null,
"owner": "root",
"path": "/etc/nginx/sites-enabled/kangapestcontrol.com.conf",
"recurse": false,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": "/etc/nginx/sites-available/kangapestcontrol.com.conf",
"state": "link",
"unsafe_writes": null,
"validate": null
},
"module_name": "file"
},
"item": {
"key": "kangapestcontrol.com",
"value": {
"branch": "master",
"cache": {
"enabled": false
},
"local_path": "../site",
"multisite": {
"enabled": false
},
"repo": "[email protected]:s3w47m88/kangapestcontrol.com.git",
"repo_subtree_path": "site",
"site_hosts": [
{
"canonical": "kangapestcontrol.com",
"redirects": [
"www.kangapestcontrol.com"
]
}
],
"ssl": {
"enabled": true,
"provider": "letsencrypt"
}
}
},
"mode": "0777",
"owner": "root",
"size": 52,
"src": "/etc/nginx/sites-available/kangapestcontrol.com.conf",
"state": "link",
"uid": 0
}
TASK [wordpress-setup : Setup WP system cron] **********************************
task path: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/wordpress-setup/tasks/main.yml:43
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/system/cron.py
<kangapestcontrol.com> ESTABLISH SSH CONNECTION FOR USER: root
<kangapestcontrol.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/spencerhill/.ansible/cp/ansible-ssh-%h-%p-%r kangapestcontrol.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
ok: [kangapestcontrol.com] => (item={'key': u'kangapestcontrol.com', 'value': {u'repo_subtree_path': u'site', u'multisite': {u'enabled': False}, u'cache': {u'enabled': False}, u'repo': u'[email protected]:s3w47m88/kangapestcontrol.com.git', u'ssl': {u'enabled': True, u'provider': u'letsencrypt'}, u'local_path': u'../site', u'branch': u'master', u'site_hosts': [{u'redirects': [u'www.kangapestcontrol.com'], u'canonical': u'kangapestcontrol.com'}]}}) => {
"changed": false,
"cron_file": "wordpress-kangapestcontrol_com",
"envs": [],
"invocation": {
"module_args": {
"backup": false,
"cron_file": "wordpress-kangapestcontrol_com",
"day": "*",
"disabled": false,
"env": null,
"hour": "*",
"insertafter": null,
"insertbefore": null,
"job": "cd /srv/www/kangapestcontrol.com/current && wp cron event run --due-now > /dev/null 2>&1",
"minute": "*/15",
"month": "*",
"name": "kangapestcontrol.com WordPress cron",
"reboot": false,
"special_time": null,
"state": "present",
"user": "web",
"weekday": "*"
},
"module_name": "cron"
},
"item": {
"key": "kangapestcontrol.com",
"value": {
"branch": "master",
"cache": {
"enabled": false
},
"local_path": "../site",
"multisite": {
"enabled": false
},
"repo": "[email protected]:s3w47m88/kangapestcontrol.com.git",
"repo_subtree_path": "site",
"site_hosts": [
{
"canonical": "kangapestcontrol.com",
"redirects": [
"www.kangapestcontrol.com"
]
}
],
"ssl": {
"enabled": true,
"provider": "letsencrypt"
}
}
},
"jobs": [
"kangapestcontrol.com WordPress cron"
]
}
PLAY RECAP *********************************************************************
kangapestcontrol.com : ok=20 changed=0 unreachable=0 failed=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment