Open FinnStutzenstein opened 8 years ago
I always run this role with the root account, so I did not catch errors that happens with other users. Could you paste your playbook that runs this role? My is here: https://github.com/ostcar/openslides_pi
This playbook is mainly yours from the first repo and not as different (just one role) as yours:
---
- hosts: openslides
gather_facts: False
vars:
openslides_secure_key: KeyKeykey # Secure Key for django. Should be changed
openslides_nginx_global: yes # Let openslides listen on any nginx domain
openslides_use_git: true
pre_tasks:
- name: Install python2
become: yes
raw: apt-get -y install python
- setup: ''
- name: Update System
become: yes
become_method: sudo
apt:
update_cache: yes
upgrade: dist
cache_valid_time: 3600
roles:
- openslides_ansible
Part of the playbook:
This error is fixed by adding
become: yes
to the nginx restart handler. But the task 'Create nginx vhost config' is not played. In thesites-enabled
directory is nonginx_vhost.conf
and the default nginx site is shown in a browser.