Using the lxc module, and want to do this. is there a way?
- name: skip dns lookup so ssh doesnt take forever
lineinfile:
line: UseDNS no
dest: /var/lib/lxc/{{ item.key }}/rootfs/etc/ssh/sshd_config
with_dict: "{{ containers }}"
notify: restart ssh
handlers:
- name: restart ssh
command: lxc-attach --name {{ item.key }} -- service ssh restart
with_dict: "{{ containers }}"
results in
RUNNING HANDLER [restart ssh]
**************************************************
fatal: [lxctest]: FAILED! => {"failed": true, "msg": "ERROR! 'item' is
undefined"}
--
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/1d1257b0-0b8c-4c69-a2cb-62a492d69f0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.