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
4 changes: 2 additions & 2 deletions roles/internal/theyvoteforyou/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
- name: Add passenger apt repository
tags: passenger
apt_repository:
repo: 'deb [signed-by=/usr/share/keyrings/phusionpassenger-archive-keyring.asc] https://oss-binaries.phusionpassenger.com/apt/passenger {{ ansible_distribution_release }} main'

Check warning on line 29 in roles/internal/theyvoteforyou/tasks/main.yml

View workflow job for this annotation

GitHub Actions / Yamllint

29:121 [line-length] line too long (180 > 120 characters)
state: present
update_cache: true

Expand Down Expand Up @@ -265,9 +265,9 @@
notify: nginx reload

- name: Allow deploy user to control application services
copy:
template:
src: theyvoteforyou_foreman
dest: /etc/sudoers.d/
dest: /etc/sudoers.d/theyvoteforyou_foreman
mode: '0440'
validate: visudo -cf %s
# notify: sudo reload
Expand Down Expand Up @@ -295,7 +295,7 @@
user: deploy
hour: "2"
minute: "5"
job: "cd /srv/www/production/current && /usr/local/bin/bundle exec rake application:cron:nightly RAILS_ENV=production"

Check warning on line 298 in roles/internal/theyvoteforyou/tasks/main.yml

View workflow job for this annotation

GitHub Actions / Yamllint

298:121 [line-length] line too long (122 > 120 characters)
state: "{{ cron_enabled | ternary('present', 'absent')}}"

- name: Install postfix so we can mail out from cron jobs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# TODO: Delete the line below as soon as it isn't necessary
deploy ALL = NOPASSWD: {{ bundle_path }} exec foreman export *
deploy ALL = NOPASSWD: /usr/local/rvm/bin/rvm . do bundle exec foreman export *
Comment thread
benrfairless marked this conversation as resolved.
deploy ALL = NOPASSWD: /bin/systemctl enable theyvoteforyou-staging.target
deploy ALL = NOPASSWD: /bin/systemctl enable theyvoteforyou-production.target
deploy ALL = NOPASSWD: /bin/systemctl enable theyvoteforyou-development.target
Expand Down
Loading