main
: 10.0.0.10db
: 10.0.0.20
Identify hard-coded or hidden assumptions
- IP address
- Port number
- Path
- Network interface (e.g.,
127.0.0.1
vs.0.0.0.0
)
Separated by...
- variables and
when
conditions; - various playbook files;
- various tags.
-
File modules / lineinfile: Ensure a particular line is in a file, or replace an existing line using a back-referenced regular expression.
-
Database modules / mysql_user: Adds or removes a user from a MySQL database.
-
Avoid the "all hosts"
%
setting in the MySQLGRANT PRIVILEGES
statement. -
Use Docker Compose to simplify the testing job.