---
- hosts: doc
tasks:
- name: rm
shell: rm -rf /tmp/ansbl12
- name: mkdir
shell: mkdir /tmp/ansbl12
- shell: /usr/bin/uptime
register: out
- debug: var=out.stderr
handlers:
- mail:
host='ru.ru.ru.ru'
port=25
to=""
from="Ansible "
subject='Ansible-report'
body='System {{ ansible_hostname }} has been successfully provisioned.'
-
Вопрос задан
-
328 просмотров