Ansible idempotent MySQL installation Playbook

后端 未结 11 1404
后悔当初
后悔当初 2021-01-30 04:29

I want to setup a MySQL server on AWS, using Ansible for the configuration management. I am using the default AMI from Amazon (ami-3275ee5b), which uses yum

11条回答
  •  悲哀的现实
    2021-01-30 04:47

    For ansible 1.3+ :

    - name: ensure mysql local root password is zwx123
      mysql_user: check_implicit_admin=True login_user=root login_password="zwx123" name=root password="zwx123" state=present
    

提交回复
热议问题