Skip to content

Root password for hostname for local_action #23

Closed
@solomongifford

Description

@solomongifford

Related to #22, if local_action is used with a mysql install ansible_hostname is localhost and not the hostname of the machine and the root password is not set.

Suggestion would be to grab the results of:

command: 'mysql -NBe 'SELECT Host from mysql.user WHERE User = "root" order by (Host="localhost") ASC'

Note that this orders the localhost last so that ansible doesn't lock itself out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions