[debops-users] sysctr problem
by Jan Kowalsky
Hi all,
anybody has an hint, why this does not work:
sysctl__host_parameters:
- name: 'network'
options:
- 'net.ipv6.conf.all.accept_ra': 1
- 'net.ipv6.conf.default.accept_ra': 1
Error message is:
fatal: [host.example.org]: FAILED! => {"changed": false, "msg":
"AnsibleFilterError: {{ sysctl__shared_memory_map |
combine(sysctl__paging_map) | combine(sysctl__hardening_map) |
combine(sysctl__parameters) | combine(sysctl__group_parameters) |
combine(sysctl__host_parameters) }}: |combine expects dictionaries, got
[{u'name': u'network', u'options': [{u'net.ipv6.conf.all.accept_ra': 1},
{u'net.ipv6.conf.default.accept_ra': 1}]}]"}
same whith:
# enable router advertisement on host for ipv6
sysctl__host_parameters:
- name: 'network'
options:
- name: 'net.ipv6.conf.all.accept_ra'
value: 1
comment: 'Accept IPv6 RAs.'
- name: 'net.ipv6.conf.default.accept_ra'
value: 1
comment: 'Accept IPv6 RAs.'
Thanks and best regards
Jan
6 years, 8 months
[debops-users] struggling with nginx role
by Jan Kowalsky
Hi all,
I'm struggling with the debops nginx role. Maybe someone can help.
First:
If I just leave everything as default, I end up with an
welcome-configuration where nginx on 443 is listen only for ipv6:
listen [::]:443 ssl http2;
While I read somewhere that it should be sufficient to have on
ipv6only=off statement, it doesn't work for me (with nginx 1.10.3-1+deb9u1).
If it's like
listen [::]:443 ssl http2 ipv6only=off default_server;
it work's with ipv4 only. Maybe it's nginx bug - but anyway it would be
better to add the ipv6only also to ssl configuration.
Second:
I tried to define an server with:
nginx__servers:
- name: [ 'nginxtest.cont0.dknuser.de' ]
enabled: true
delete: false
ssl: true
and get the following error.
TASK [debops.nginx : Create global webroot directories if allowed]
***********************************************************************************
task path:
/home/user/.local/share/debops/debops/ansible/roles/debops.nginx/tasks/nginx_servers.yml:3
changed: [nginxtest.example.org] => (item={u'ssl': True, u'enabled':
True, u'name': [u'nginxtest.cont0.dknuser.de'], u'delete': False}) =>
{"changed": true, "failed": false, "gid": 0, "group": "root", "item":
{"delete": false, "enabled": true, "name":
["nginxtest.cont0.dknuser.de"], "ssl": true}, "mode": "0755", "owner":
"root", "path": "/var/www/html/sites/nginxtest.cont0.dknuser.de/public",
"size": 0, "state": "directory", "uid": 0}
fatal: [nginxtest.example.org]: FAILED! => {"failed": true, "msg": "The
task includes an option with an undefined variable. The error was:
'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute
'name'\n\nThe error appears to have been in
'/home/user/.local/share/debops/debops/ansible/roles/debops.nginx/tasks/nginx_servers.yml':
line 3, column 3, but may\nbe elsewhere in the file depending on the
exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name:
Create global webroot directories if allowed\n ^ here\n\nexception
type: <class 'ansible.errors.AnsibleUndefinedVariable'>\nexception:
'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute
'name'"}
What do I wrong?
Best regards
Jan
6 years, 9 months