Skip to content

Bitwarden Rs

Auto Documentation

Documentation Generated with Python on 2021-04-03

Default Variables

Tasks

main.yml

- name: Ensure Bitwarden Directory Exist
  become: yes
  file:
    path: "{{docker_dir}}/bitwarden"
    state: directory
    owner: "root"
    group: "root"
  tags: bitwarden

- name: Create Bitwarden Docker Container
  docker_container:
    name: bitwarden
    image: "bitwardenrs/server:latest"
    pull: yes
    hostname: bitwarden
    restart_policy: unless-stopped
    networks:
      - name: web
    networks_cli_compatible: yes
    state: started
    env:
      WEBSOCKET_ENABLED: "true"
      SIGNUPS_ALLOWED: "false"
      # ADMIN_TOKEN: "{{bitwarden_admin_token}}"
      DOMAIN: "https://{{ proxy.bitwarden_rs.subdomain }}.{{ primary_domain }}"
      SMTP_HOST: "{{sftp_host}}"
      SMTP_FROM: "{{sftp_from}}"
      SMTP_PORT: "{{sftp_port}}"
      SMTP_SSL: "true"
      SMTP_USERNAME: "{{sftp_username}}"
      SMTP_PASSWORD: "{{sftp_password}}"
    volumes:
      - "{{docker_dir}}/bitwarden:/data"