Move some Ansible config out of scripts and into ansible.cfg
My immediate motivation is that I'm going to try turning on the pipelining setting, to improve performance, and I'd like to have the consistent place to put it! But also, I like standardizing our setup a bit more, too
This commit is contained in:
parent
d69c37089e
commit
2e7bdc47d7
3 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Deploy a new version to production, using the Ansible playbook in `deploy/deploy.yml`.
|
# 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`.
|
# 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
|
#!/usr/bin/env bash
|
||||||
# Set up the deployment environment, using the Ansible playbook in `deploy/setup.yml`.
|
# 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.'
|
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
|
||||||
|
|
2
deploy/ansible.cfg
Normal file
2
deploy/ansible.cfg
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[defaults]
|
||||||
|
inventory = inventory.cfg
|
Loading…
Reference in a new issue