- name: php.ini hardening
lineinfile:
dest=/etc/php5/fpm/php.ini
regexp="{{ item.regexp }}"
line="{{ item.line }}"
backrefs=yes
with_items:
- php_ini_settings# roles/php-fpm/vars/main.yml---php_ini_settings:
- regexp: "memory_limit = 128M"
line: "{{ memory_limit }}"
- regex: "post_max_size = 8M"
line: "{{ post_max_size }}"The fatal error:
fatal: [192.168.33.9] => One or more undefined variables: 'str object' has no attribute 'regexp'
Anyone has a clue about this? Thanks in advance!
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/59e76ce9-a1d8-4484-b753-9143d35db46f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
- name: Setting log level in development
lineinfile:
dest=/etc/php5/fpm/php.ini
regexp="{{ item.regexp }}"
line="{{ item.line }}"
backrefs=yes
with_items: php_ini_settingsfatal: [192.168.33.9] => One or more undefined variables: 'str object' has no attribute 'regexp'
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1d73b7fe-d30c-4278-8744-2d36b0b721a1%40googlegroups.com.
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 2: ordinal not in range(128)To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/bdc8c91a-c1e4-4f40-873a-1df7ded8a322%40googlegroups.com.