title: scl enable rh-mariadb102 bash doesn't work with Ansible playbook
body: <p>I'm new to stackoverflow... It seems to be a pretty good place to share knowledge and to find solution with a very interesting community. </p>
  
  <p>I've a problem with Ansble and the "scl" "mysql_install_dir" commands. </p>
  
  <p>When I execute manually "scl enable rh-mariadb102 bash &amp;&amp; mysql_install_dir ..." it's perfectly working when I do it right in the server's console. </p>
  
  <p>But when I try to build a task on Ansible : </p>
  
  <pre><code>- name: "Execute mysql_install_db to prepare DB"
    shell: |
      scl enable rh-mariadb102 bash
      mysql_install_db --datadir=/data/{{ item.instance_name }}/db/mariadb102
    become_user: root
    with_items: "{{ vars_list }}"
  </code></pre>
  
  <p>It return error : </p>
  
  <p>"Use \"scl enable rh-mariadb102 'service ...'\" invocation"</p>
  
  <p>This seems like Ansible doesn't execute well the scl enable command... or something like this. </p>
  
  <p>Someone have been stuck before with this issue ? </p>
  
  <p>Thanks for the help and sorry for bad english. </p>