Skip to content

Commit 7f7f35e

Browse files
author
Anandkumar Patel
committed
cleaup navi deploy
1 parent 3c8dda6 commit 7f7f35e

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

ansible/navi.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,18 @@
1313
- role: notify
1414
rollbar_token: "{{ navi_rollbar_token }}"
1515
tags: [ notify ]
16-
# - { role: builder, tags: [ build ] }
17-
- { role: content-domain-certs }
18-
- { role: tls-server-ca, ca_dest: "{{ redis_ca_cert_path }}" }
19-
- { role: container_start, number_of_containers: 2 }
16+
17+
- role: builder
18+
tags: [ build ]
19+
20+
- role: content-domain-certs
21+
22+
- role: tls-server-ca
23+
ca_dest: "{{ redis_ca_cert_path }}"
24+
25+
- role: container_start
26+
number_of_containers: "{{ ansible_processor_cores }}"
27+
2028
- role: nginx-proxied-service
2129
nginx_host: "{{ groups['userland'][0] }}"
2230
target_ip_address: "{{ hostvars[groups['navi'][0]]['ansible_default_ipv4']['address'] }}"

ansible/roles/container_start/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
set_fact:
2929
number_of_containers: 1
3030

31-
- debug:
31+
- name: print number of contaienrs
3232
tags: deploy
33+
debug:
3334
msg: starting this many containers -- {{ number_of_containers }}
3435

3536
- name: start new container

0 commit comments

Comments
 (0)