Skip to content

Commit

Permalink
Ensuring that PostgreSQL server is not installed when postgres_is_loc…
Browse files Browse the repository at this point in the history
…al is true for the oawaiver Role
  • Loading branch information
jrgriffiniii committed Jan 29, 2025
1 parent 10256c4 commit a57ecef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion group_vars/oawaiver/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ install_ruby_from_source: true
ruby_version_override: "ruby-3.1.3"

# System Node.js
desired_nodejs_version: "v18.17.0"
desired_nodejs_version: "v18.20.6"

# NGINX
nginx_remove_default_vhost: true
Expand Down
1 change: 1 addition & 0 deletions roles/postgresql/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
state: started
enabled: true
when:
- postgresql_is_local
- running_on_server

# this looks redundant given the task that follow. Test this when postgresql needs to be 15
Expand Down
6 changes: 4 additions & 2 deletions roles/rails_app/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ dependencies:
- role: 'bind9'
- role: 'deploy_user'
- role: 'passenger'
- { role: 'postgresql', tags: 'postgresql' }
- { role: 'nodejs', when: install_nodejs|default(true) }
- role: postgresql
tags: 'postgresql'
- role: nodejs
when: install_nodejs|default(true)

0 comments on commit a57ecef

Please sign in to comment.