Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name: Secure installation and database creation
- hosts: ansible2-merrick
- become: true
- tasks:
- - name: Remove the test database
- mysql_db:
- name: test
- login_user: root
- login_password: "NET#265"
- state: absent
- tags: mariadb
- - name: Create database
- mysql_db:
- name: "wordpress"
- login_user: root
- login_password: "NET#265"
- state: present
- with_items: "wordpress"
- register: db_creation
- tags: mariadb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement