HI,
I have a task that create a folder on HDFS storage.
If the folder exists I wish to show a message
- hosts: gw
become: true
become_user: hdfs
tasks:
- name: create folder in HDFS
shell: hadoop dfs -mkdir /tmp/dudu
ignore_errors: yes
register: result
when: result is failed
fail:
msg: folder exists
--
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/cf057ff7-8a50-47a4-86c4-b03551431180%40googlegroups.com.