Skip to content

Commit a6dbada

Browse files
add required envs
1 parent b474bc2 commit a6dbada

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

ansible/group_vars/alpha-sauron.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,8 @@ redis_port: 6379
1010
enviroment_vars:
1111
REDIS_IPADDRESS: "{{ redis_host }}"
1212
REDIS_PORT: "{{ redis_port }}"
13+
ORG_ID: "{{ org_id.stdout }}"
14+
RABBITMQ_HOSTNAME: "{% if rabbit_host is defined %}{{ rabbit_host }}{% else %}{{ hostvars[groups['rabbitmq'][0]]['ansible_default_ipv4']['address'] }}{% endif %}"
15+
RABBITMQ_PASSWORD: "{{ rabbit_password }}"
16+
RABBITMQ_PORT: "{{ rabbit_port }}"
17+
RABBITMQ_USERNAME: "{{ rabbit_username }}"

ansible/roles/sauron/tasks/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,10 @@
2222
when: weave_install.changed
2323
sudo: yes
2424
notify:
25-
- restart service {{ app_name }}
25+
- restart service {{ app_name }}
26+
27+
- name: get org id
28+
sudo: yes
29+
when: docker_config == "docks"
30+
shell: "cut -d, -f 1 /opt/runnable/host_tags"
31+
register: org_id

ansible/sauron.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
- hosts: rabbitmq
23
- hosts: redis
34

45
- hosts: docks

0 commit comments

Comments
 (0)