title: Using Ansible playbook to start mysql
body: <h2>I am trying to install mysql using the following script.</h2>
  
  <pre><code>- hosts: webservers
    strategy: debug
    gather_facts: no
    remote_user: abkari
    tasks:
      - name: "Install Apache, MySQL and PHP5"
        yum: name={{item}} state=present
        with_items:
          - mysql-server
          - python-mysqldb
          - php5-mysql
  
      - name: "Turn on Apache and MyDQL"
        service: name = {{item}} state=started enabled=yes
        with_items:
          - mysql
  
      - name: Create a test dabase
        mysql_db: name=testDb
                  state=present
  
      - name: Create a new user
        mysql_user: name=webapp
                    password=mypassword
                    priv=*.*:ALL state=present
  </code></pre>
  
  <p>When i execute the script it just gives me the following output
  playbook: sample_script.yml</p>
  
  <pre><code>  play #1 (webservers): webservers      TAGS: []
      pattern: [u'webservers']
      hosts (1):
        10.143.219.12
  </code></pre>
  
  <p>When i go and check on 10.143.219.12 machine. It is not installed at all. 
  What might be wrong here?</p>