Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion infrastructure/docker-compose.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,11 @@ services:
labels:
- traefik.enable=false
replicas: 1
# If this doesn't get run successfully, both the replica set in mongo and
# the user schema remains uninitialized.
restart_policy:
condition: none
condition: on-failure
delay: 10s
environment:
- REPLICAS=1
- MONGODB_ADMIN_USER=${MONGODB_ADMIN_USER}
Expand Down
7 changes: 7 additions & 0 deletions infrastructure/server-setup/tasks/swap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
tags:
- swap.file.permissions

- name: Ensure 'file' utility is installed
ansible.builtin.package:
name: file
state: present
tags:
- swap.file.mkswap

- name: 'Check swap file type'
command: file {{ swap_file_path }}
register: swapfile
Expand Down