---
- hosts: all
gather_facts: true
sudo: true
tasks:
- name: capture linux_os
shell: "{{ item }}"
register: prepatch
with_items:
- 'uname -a'
- 'cat /etc/resolv.conf'
- name: create directory
file: path=/tmp/{{petch1}} state=directory
- name: create backup
copy: {{ prepatch.stdout }} dest=/tmp/{{petch1}}-prepatch.txt
ignore_errors: True
Unable to send to remote server
--
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/e625498f-386a-4329-9fb4-db21244b949b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.