title: Is there a way to check before adding module to JBoss using CLI?
body: <p>Is there a way to check module hasn't already been added before calling adding using JBoss CLI?</p>
  
  <p>e.g.</p>
  
  <pre><code>module add --name=org.mysql --resources=/home/abc/drivers/mysql/MySQL5.jar
  
  
  
  # Want to do similar check for module add
  if (outcome != success) of /subsystem=datasources/jdbc-driver=org.mysql:read-resource
     # Add it...
  end-if
  </code></pre>
  
  <p>Reason is trying to add a module that already exists causes an error.</p>