That Ansible task is a mix-up of options for both the shell module and the file module. I'm not even sure what you're trying to do—just creating a directory for the plugin won't accomplish anything. I'd expect a task for installing plugins to run .../plugin install {{ item }}.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.