Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running on debian stretch #7

Open
map7 opened this issue May 30, 2018 · 2 comments
Open

Running on debian stretch #7

map7 opened this issue May 30, 2018 · 2 comments
Labels

Comments

@map7
Copy link

map7 commented May 30, 2018

I ran your role on Debian Stretch as systemd puts the instance directory deep down in the /tmp/systemd.private... directory

The fix in the bug report could be applied to this task and then it would work for all versions of Debian.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=846052

@map7
Copy link
Author

map7 commented May 30, 2018

Something like the following should fix the problem

- name: Create apache2.service.d
  file: path=/etc/systemd/system/apache2.service.d state=directory
  when: ansible_distribution_release == 'stretch'

- name: Install passenger setup to Apache2
  copy:
    src=common/files/passenger-instance-reg.conf
    dest=/etc/systemd/system/apache2.service.d
    owner=root
    group=root
    mode=644
  when: ansible_distribution_release == 'stretch'
  
- name: Add passenger instance registry dir to apache setup
  lineinfile:
    dest: /etc/apache2/apache2.conf
    regexp: 'PassengerInstanceRegistryDir'
    line: 'PassengerInstanceRegistryDir /run/passenger'
    state: present
  when: ansible_distribution_release == 'stretch'

- name: Add passenger instance registry dir to environement
  lineinfile:
    dest: /etc/environment
    regexp: 'PASSENGER_INSTANCE_REGISTRY_DIR'
    line: 'PASSENGER_INSTANCE_REGISTRY_DIR=/run/passenger'
    state: present
  when: ansible_distribution_release == 'stretch'

- name: Reload daemon
  command: systemctl daemon-reload
  when: ansible_distribution_release == 'stretch'

- name: Restart apache2
  service:
    name: apache2
    state: restarted
  when: ansible_distribution_release == 'stretch'

@mtpereira
Copy link
Owner

Hi @map7 ,

Unfortunately, I'm afraid I won't be able to fix this issue in a timely fashion. However, I'd love to review a PR with your fix, along with some tests for it!

Thanks for the report!

@mtpereira mtpereira added the bug label May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants