Skip to content
This repository has been archived by the owner on Aug 22, 2018. It is now read-only.

Commit

Permalink
Merge branch 'master' of mdgithub:tissuemaps/tmsetup
Browse files Browse the repository at this point in the history
  • Loading branch information
HACKERMD committed Nov 15, 2016
2 parents ed350c8 + 722cf47 commit 8e80de2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 5 additions & 2 deletions tmsetup/share/playbooks/roles/cloud-instance/tasks/gce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
subnet_region: "{{ region | regex_replace('^(.*)-[a-z]$', '\\1') }}"
ipv4_range: "{{ ip_range }}"
run_once: yes
register: network_facts
when: instance_state == "present"

- name: Create web firewall
Expand All @@ -46,7 +47,9 @@
target_tags:
- web
run_once: yes
when: instance_state == "present"
# TODO: There seems to be a bug in Ansible with already existing firewalls
# and subnetworks
when: instance_state == "present" and network_facts.changed

- name: Create compute-storage firewall
local_action: gce_net
Expand All @@ -63,7 +66,7 @@
- compute
- storage
run_once: yes
when: instance_state == "present"
when: instance_state == "present" and network_facts.changed

- name: Create boot disk
local_action: gce_pd
Expand Down
5 changes: 4 additions & 1 deletion tmsetup/share/playbooks/roles/tmaps-common/tasks/opencv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@

- name: Fix OpenCV driver issue
become: yes
shell: ln /dev/null /dev/raw1394
file:
src=/dev/null
dest=/dev/raw1394
state=hard
tags:
- opencv
- python
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
- name: Update db password in TissueMAPS configuration
ini_file:
dest={{ tmaps_config_file }}
create=yes
section=DEFAULT
state=present
option=db_password
Expand Down

0 comments on commit 8e80de2

Please sign in to comment.