Skip to content

Commit

Permalink
skip role instead of tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Zharktas committed Jul 1, 2015
1 parent 75df670 commit a5cea56
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -34,4 +34,4 @@ script:
- "ansible-playbook -i travis/travis-ansible-inventory ansible/single-server.yml --syntax-check"

# Run the role/playbook with ansible-playbook.
- "ansible-playbook -i travis/travis-ansible-inventory -v ansible/single-server.yml --connection=local --sudo --skip-tags=has-hostname,non-local,firewall,database,spatial"
- "ansible-playbook -i travis/travis-ansible-inventory -v travis/single-server-travis.yml --connection=local --sudo --skip-tags=has-hostname,non-local,firewall,database"
34 changes: 34 additions & 0 deletions travis/single-server-travis.yml
@@ -0,0 +1,34 @@
---

# This playbook installs all roles on a single server

- hosts: webserver
sudo: true
vars:
database_host: "127.0.0.1"
solr_host: "127.0.0.1"
database_ip_range: "127.0.0.1/8"
vars_files:
- "vars/common.yml"
- ["vars/ytp-secrets/{{ secret_variables }}", "vars/none.yml"]
- ["vars/local.yml", "vars/none.yml"]
roles:
- common
- firewall
- users
- clean
- nfs_server
- nfs_client
- common_webserver
- ssl
- nginx
- postfix
- jetty
- redis
- ckan
- drupal
- clamav
- data
handlers:
- name: restart sshd
service: name=ssh state=restarted

0 comments on commit a5cea56

Please sign in to comment.