When using lineinfile, I get this kind of an error:

TASK: [Enable/Disable watchdog] 
***********************************************
failed: [dni-7448-35] => {"failed": true, "parsed": false}
invalid output was: Traceback (most recent call last):
  File 
"/home/cumulus/.ansible/tmp/ansible-tmp-1429913951.55-31782322592167/lineinfile",
 
line 1917, in <module>
    main()
  File 
"/home/cumulus/.ansible/tmp/ansible-tmp-1429913951.55-31782322592167/lineinfile",
 
line 370, in main
    should_unquote = not is_quoted(line)
NameError: global name 'is_quoted' is not defined


FATAL: all hosts have already failed -- aborting

the task looks like so:
    - name: Enable/Disable watchdog
      lineinfile: dest=/etc/watchdog.d/platform line="run_watchdog={{ 
run_watchdog }}" state=present
      when: run_watchdog is defined

Ansible version is 1.7

Anybody knows how to fix this?

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/54b76250-749e-48f7-9a8a-64c5d8e197ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to