You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jens 1eda860e11 Update 'templates/' 10 months ago
defaults Update 'defaults/main.yml' 11 months ago
handlers initial commit 2 years ago
meta updated from im to nmgfitness 1 year ago
tasks fix bootstrap and app registration 1 year ago
templates Update 'templates/' 10 months ago
tests initial commit 2 years ago
vars move default vars from vars to defaults 2 years ago
.drone.yml Add '.drone.yml' 1 year ago Update '' 1 year ago

Role Name

Build Status

This role installs nmgfitness:


This role requires a database server to to be present where im can connect to

Role Variables

  • im_admin_password: required, password for 'admin' user for im
  • im_secret_key: optional Secret Key for Django app, defaults to random 56char string recreated on every run (This will invalidated current open sessions)
  • im_user: user running the app, defaults to 'im' (this user will be created)
  • im_home: path to install the im app in, defaults to /home/im (this path will be created)
  • im_domain: the domain this app will run on (Needed for django's ALLOWED_HOSTS), default localhost
  • im_db_name: database name, defaults to 'im'
  • im_db_user: database user, defaults to 'im'
  • im_db_password: database password, defaults to '', (ignored for unix socket connection)
  • im_db_host: database server, defaults to '/run/postgresql/' for local unix socket connection
  • im_db_port: database port, defaults to 5432 (ignored for unix socket connection)
  • im_workers: the number of gunicorn http worker threads (defaults to 4)
  • im_http_listen: the ip address to bind to, change this to ip address of the host if you use a reverse proxy on a different host, defaults to localhost
  • im_http_port: the http port to bind to, defaults to 80



Example Playbook

- name: "Install im pantry app"
  hosts: im
      - ansible-role-nmgfitness
      - im_domain: ""
      - im_http_listen: "{{inventory_hostname}}"
      - im_admin_password: "test"
- name: "Install im pantry app"
  hosts: im
      - ansible-role-im
      - im_domain: ""
      - im_admin_email: ""
      - im_http_listen: ""
      - im_http_port: 8000
      - im_admin_password: !vault |



Author Information

Jens (