trying to add multiple ntp servers to chrony.conf - name: add line lineinfile: backup: no backrefs: no state: present path: "{{ file_path }}" insertafter: "{{ line.replace_with }}" line: "{{ line.line_to_add }}" with_items: - { search: "{{ line.replace_with }}", add: "{{ line.line_to_add }}" }
but it only adds it as single line any idea? vars line: line_to_add: - "server ntp1.domain.com iburst" - "server ntp2.domain.com iburst" - "server ntp3.domain.com iburst" -- 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-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/836036dd-6862-4475-b509-786762a2a7cbn%40googlegroups.com.