forked from roots/trellis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
54 additions
and
20 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[defaults] | ||
roles_path = vendor/roles | ||
force_handlers = True | ||
inventory = hosts | ||
|
||
[ssh_connection] | ||
ssh_args = -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Not used. Vagrant generates its own hosts file automatically and uses it | ||
[web] | ||
# No edits are necessary | ||
|
||
[development] | ||
127.0.0.1 | ||
|
||
[development:children] | ||
web | ||
[web] | ||
127.0.0.1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
[web] | ||
192.168.50.5 | ||
# Add each host to the [production] group and to a "type" group such as [web] or [db]. | ||
# List each machine only once per [group], even if it will host multiple sites. | ||
|
||
[production] | ||
your_server_ip | ||
|
||
[production:children] | ||
web | ||
[web] | ||
your_server_ip |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
[web] | ||
192.168.50.5 | ||
# Add each host to the [staging] group and to a "type" group such as [web] or [db]. | ||
# List each machine only once per [group], even if it will host multiple sites. | ||
|
||
[staging] | ||
your_server_ip | ||
|
||
[staging:children] | ||
web | ||
[web] | ||
your_server_ip |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
- name: Ensure necessary variables are defined | ||
hosts: localhost | ||
gather_facts: false | ||
vars: | ||
extra_vars_command: "{{ (playbook == 'server.yml') | ternary('env=<environment>', '\"site=<domain> env=<environment>\"') }}" | ||
tasks: | ||
- name: Ensure environment is defined | ||
fail: | ||
msg: | | ||
Environment missing. Use `-e` to define `env`: | ||
ansible-playbook {{ playbook }} -e {{ extra_vars_command }} | ||
when: env is not defined |