Better code display

This commit is contained in:
Emilien Mantel
2018-03-17 18:28:56 +01:00
parent c72c3ac842
commit cc3bef8bfa
16 changed files with 161 additions and 94 deletions

View File

@@ -1,7 +1,10 @@
---
- name: MYSQL_USER | Update mysql root password for all root accounts
mysql_user: name=root host={{ item }} password={{ mariadb_root_password }}
mysql_user:
name: root
host: "{{ item }}"
password: "{{ mariadb_root_password }}"
with_items:
- "{{ ansible_hostname }}"
- 127.0.0.1
@@ -9,7 +12,10 @@
- localhost
- name: MYSQL_USER | Remove all anonymous users
mysql_user: name='' host={{ item }} state=absent
mysql_user:
name: ''
host: "{{ item }}"
state: absent
with_items:
- "{{ ansible_hostname }}"
- 127.0.0.1
@@ -17,5 +23,6 @@
- localhost
- name: MYSQL_DB | Remove the test database
mysql_db: name=test state=absent
mysql_db:
name: test
state: absent