Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 70e122c0971bae0f2aec9706d852adad > files > 150

ansible-0.7.1-1.fc16.noarch.rpm

##
# Example Ansible playbook that uses the MySQL module.
#

---
- hosts: all
  user: root

  tasks:

    - name: Create database user
      action: mysql_user user=bob password=12345 priv=*.*:ALL state=present

    - name: Create database
      action: mysql_db db=bobdata state=present

    - name: Ensure no user named 'sally' exists and delete if found.
      action: mysql_user user=sally state=absent