Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
8 changes: 4 additions & 4 deletions ansible/roles/nex/tasks/initial_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@
- name: Nex! | Install puma
command: gem install puma

- include: runtime_deb.yml
when: ansible_os_family == "Debian"
- include: runtime_upstart.yml
when: ansible_service_mgr == "upstart"

- include: runtime_rhel.yml
when: ansible_os_family == "RedHat"
- include: runtime_systemd.yml
when: ansible_service_mgr == "systemd"

- name: Nex! | Copy puma.rb config
template: src=puma.rb dest={{deploy_directory}}/shared/config/puma.rb owner=deployer group=deployer mode=0755
Expand Down
12 changes: 6 additions & 6 deletions ansible/roles/nex/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
when: infra_ec2_aws_access_key is defined
tags: [deploy]

- name: Nex! | Run/Reload Puma (Debian)
include: runtime_deb.yml
when: ansible_os_family == "Debian"
- name: Nex! | Run/Reload Puma (Upstart)
include: runtime_upstart.yml
when: ansible_service_mgr == "upstart"

- name: Nex! | Run/Reload Puma (RHEL)
include: runtime_rhel.yml
when: ansible_os_family == "RedHat"
- name: Nex! | Run/Reload Puma (Systemd)
include: runtime_systemd.yml
when: ansible_service_mgr == "systemd"

- name: Nex! | Instance Register
ec2_elb:
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/nex/templates/puma.service
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ PIDFile={{ deploy_directory }}/shared/pids/puma.pid
TimeoutSec=15
Restart=always

ExecStart=/usr/local/bin/bundle exec puma -C {{ deploy_directory }}/shared/config/puma.rb
ExecStart=/usr/local/rvm/gems/ruby-2.3.1/bin/bundle exec puma -C {{ deploy_directory }}/shared/config/puma.rb

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion ansible/roles/nex/templates/sidekiq.service
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ PIDFile={{ deploy_directory }}/shared/pids/sidekiq.pid
TimeoutSec=15
Restart=always

ExecStart=/usr/local/bin/bundle exec sidekiq -c {{ nex_config.sidekiq.worker_threads }} -L {{ deploy_directory }}/shared/log/sidekiq.log
ExecStart=/usr/local/rvm/gems/ruby-2.3.1/bin/bundle exec sidekiq -c {{ nex_config.sidekiq.worker_threads }} -L {{ deploy_directory }}/shared/log/sidekiq.log

[Install]
WantedBy=multi-user.target