Compare commits
2 commits
d69c37089e
...
65eaa031dd
Author | SHA1 | Date | |
---|---|---|---|
65eaa031dd | |||
2e7bdc47d7 |
3 changed files with 9 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
# Deploy a new version to production, using the Ansible playbook in `deploy/deploy.yml`.
|
||||
# This skips the build step that normally runs when you just call `bin/deploy`.
|
||||
ansible-playbook -i deploy/inventory.cfg deploy/deploy.yml
|
||||
cd $(dirname $0)/../deploy && ansible-playbook deploy.yml
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
# Set up the deployment environment, using the Ansible playbook in `deploy/setup.yml`.
|
||||
echo $'Setup requires you to become the root user. You\'ll need to enter the password for your account on the remote web server below, and you must be part of the `sudo` user group.'
|
||||
ansible-playbook -K -i deploy/inventory.cfg deploy/setup.yml
|
||||
cd $(dirname $0)/../deploy && ansible-playbook -K setup.yml
|
||||
|
|
7
deploy/ansible.cfg
Normal file
7
deploy/ansible.cfg
Normal file
|
@ -0,0 +1,7 @@
|
|||
[defaults]
|
||||
inventory = inventory.cfg
|
||||
|
||||
[ssh_connection]
|
||||
# Pipelining is an optimization that's off by default for compatibility, but runs
|
||||
# playbooks much faster when it's available. It works in our case, so use it!
|
||||
pipelining = True
|
Loading…
Reference in a new issue