Code==>

- name: insert logggin file in log4j protperties

    lineinfile:

      path: '{{ item.path }}'

      insertafter: 'log4j.appender.kafkaAppender.layout.ConversionPattern=*'

      line: '{{ item.line }}'

    with_items:

    - { path: '/etc/kafka/confluent-6.2.10/kafka/log4j.properties', line: 
'log4j.appender.kafkaAppender.MaxFileSize=512MB' }

    - { path: '/etc/kafka/confluent-7.2.5/kafka/log4j.properties', line: 
'log4j.appender.kafkaAppender.MaxFileSize=512MB' }

    - { path: '/etc/kafka/confluent-6.2.10/kafka/log4j.properties', line: 
'log4j.appender.kafkaAppender.MaxBackupIndex=10' }

    - { path: '/etc/kafka/confluent-7.2.5/kafka/log4j.properties', line: 
'log4j.appender.kafkaAppender.MaxBackupIndex=10' }


ERROR==>>>

item={'path': '/etc/kafka/confluent-7.2.5/zookeeper/log4j.properties', 
'line': 'log4j.appender.kafkaAppender.MaxBackupIndex=10'}) => 
{"ansible_loop_var": "item", "changed": false, "item": {"line": 
"log4j.appender.kafkaAppender.MaxBackupIndex=10", "path": 
"/etc/kafka/confluent-7.2.5/zookeeper/log4j.properties"}, "msg": 
"Destination { item.path }} does not exist !", "rc": 257}

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f34a22cb-eaee-41b0-9573-5c09dc7b9517n%40googlegroups.com.

Reply via email to