Skip to content

Commit

Permalink
Merge pull request #33 from tulibraries/add-redis
Browse files Browse the repository at this point in the history
Add redis
  • Loading branch information
Chad Nelson committed Nov 6, 2020
2 parents ecff80a + 0d88687 commit 0f215d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ rails_app_dev_secret: DUMMYVALUE
rails_app_test_secret: DUMMYVALUE

is_blacklight_app: false
is_webserver: true

app_use_ssl: false
app_certs_base_path: /etc/pki/tls
Expand Down
4 changes: 4 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
- assets:precompile
become: true
become_user: "{{ rails_app_user }}"
when: is_webserver
notify:
- restart passenger app
- migrate db
Expand All @@ -40,6 +41,7 @@
become: true
become_user: "{{ rails_app_user }}"
run_once: true
when: is_webserver
notify: restart passenger app
tags:
- rails_app
Expand All @@ -51,6 +53,7 @@
chdir: "{{ rails_app_install_path }}"
become: true
become_user: "{{ rails_app_user }}"
when: is_webserver
failed_when: false
tags:
- rails-app
Expand All @@ -60,6 +63,7 @@
name: httpd
state: restarted
become: true
when: is_webserver
tags:
- rails_app

Expand Down
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@

- include: dependencies.yml
- include: passenger-config.yml
when: is_webserver
- include: install-app.yml

0 comments on commit 0f215d9

Please sign in to comment.