# failure to parse \`environment\`

**URL:** <https://forum.ansible.com/t/failure-to-parse-environment/29278>\
**Category:** Ansible Project\
**Created:** [December 17, 2018, 9:01pm UTC](https://forum.ansible.com/t/failure-to-parse-environment/29278 "2018-12-17T21:01:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barry\_Kaplan](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Post date:** [December 17, 2018, 9:01pm UTC](https://forum.ansible.com/t/failure-to-parse-environment/29278/1 "2018-12-17T21:01:38Z")

</div>

I am running

`

- name: Install logstash {{ logstash\_apt\_version }}  
apt:  
pkg: “logstash={{ logstash\_apt\_version }}”  
state: present  
force: “{{ logstash\_apt\_force | default(false) }}”  
environment: “{{ logstash\_environment | default(omit) }}”  
register: apt\_logstash  
notify: restart logstash  
`

Where in this case `environment is not defined`, and I get this warning. Why would this be?

`  
TASK [logstash : Install logstash 1:6.5.2-1] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
[WARNING]: could not parse environment value, skipping: [u’{{ logstash\_environment | default(omit) }}']

changed: [10.0.198.55]

`
