Skip to content

Commit

Permalink
Quotes, dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
owine committed Mar 12, 2024
1 parent 5bfacc9 commit a732f98
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
11 changes: 8 additions & 3 deletions roles/rocketchat/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ rocketchat_docker_ports: "{{ rocketchat_docker_ports_defaults
rocketchat_docker_envs_default:
TZ: "{{ tz }}"
ROOT_URL: "{{ rocketchat_web_url }}"
MONGO_URL: mongodb://rocketchat_db:27017/rocketchat?replicaSet=rs0
MONGO_OPLOG_URL: mongodb://rocketchat_db:27017/local?replicaSet=rs0
DEPLOY_METHOD: docker
MONGO_URL: "mongodb://rocketchat_db:27017/rocketchat?replicaSet=rs0"
MONGO_OPLOG_URL: "mongodb://rocketchat_db:27017/local?replicaSet=rs0"
DEPLOY_METHOD: "docker"
rocketchat_docker_envs_custom: {}
rocketchat_docker_envs: "{{ rocketchat_docker_envs_default
| combine(rocketchat_docker_envs_custom) }}"
Expand Down Expand Up @@ -153,3 +153,8 @@ rocketchat_docker_restart_policy: unless-stopped

# State
rocketchat_docker_state: started

# Dependencies
rocketchat_depends_on: "rocketchat_db"
rocketchat_depends_on_delay: "0"
rocketchat_depends_on_healthchecks: "false"
6 changes: 3 additions & 3 deletions roles/rocketchat/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
mongodb_instances: ["rocketchat_db"]
mongodb_docker_image_tag: "5"
mongodb_docker_envs_custom:
MONGODB_REPLICA_SET_MODE: primary
MONGODB_REPLICA_SET_NAME: rs0
MONGODB_ENABLE_JOURNAL: true
MONGODB_REPLICA_SET_MODE: "primary"
MONGODB_REPLICA_SET_NAME: "rs0"
MONGODB_ENABLE_JOURNAL: "true"

- name: Add DNS record
ansible.builtin.include_tasks: "{{ resources_tasks_path }}/dns/tasker.yml"
Expand Down

0 comments on commit a732f98

Please sign in to comment.