Skip to content

Commit

Permalink
Merge pull request #38 from ANXS/soupdiver/update_readme
Browse files Browse the repository at this point in the history
update README
  • Loading branch information
David Farrington committed Sep 11, 2015
2 parents 592361a + e0bdee7 commit e2ed94f
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ Features include:
```yaml
# Basic settings
mysql_port: 3306 # The port on which mysql listens
mysql_bind_address: "0.0.0.0" # The address the mysql server binds on
mysql_root_password: '' # The root password

# Optional, single use variable, see below for changing root password
# mysql_current_root_password: 'newpass'
mysql_bind_address: '0.0.0.0' # The address the mysql server binds on
mysql_root_password: '' # The new root password
mysql_default_root_password: '' # The root password

# Fine Tuning
mysql_key_buffer: '16M'
Expand Down Expand Up @@ -68,23 +66,15 @@ mysql_users:
monit_protection: false # true or false, requires ANXS.monit
```
# Setting the Root Password
# Setting/Updating the root Password
If You would like to change your mysql root password using this role, ensure
you use the following variables in your play:
```yaml
mysql_current_root_password: <Your current root password>
mysql_default_root_password: <Your current root password>
mysql_root_password: <Your new root password>
```
These will be used to change the password of the root user, once you have run your play,
please remove the `mysql_current_root_password` variable, as it is no longer needed,
and will cause subsequent plays to fail.

Heres an example of how you might change the root password using the `-e` parameter:

ansible-playbook myplay.yml -e "mysql_current_root_password='current_pass' mysql_root_password='new_pass'" --sudo

#### Testing
This project comes with a VagrantFile, this is a fast and easy way to test
changes to the role, fire it up with `vagrant up`, provision the box with
Expand Down

0 comments on commit e2ed94f

Please sign in to comment.