Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with ansible 2.0 #32

Open
ydawant opened this issue Feb 9, 2016 · 0 comments
Open

error with ansible 2.0 #32

ydawant opened this issue Feb 9, 2016 · 0 comments

Comments

@ydawant
Copy link

ydawant commented Feb 9, 2016

seeing this error:
ERROR! this task 'lineinfile' has extra params, which is only allowed in the following modules: command, shell, script, include, include_vars, add_host, group_by, set_fact, raw, meta

my proposed fix:

in tasks/main.yml replace the double quotes in the "Ensure the hostname entry for master is available for the client." task to single quotes in the address interpolation.

from:
lineinfile: dest=/etc/hosts regexp="{{ mysql_repl_master }}" line="{{ hostvars[mysql_repl_master].ansible_default_ipv4.address + " " + mysql_repl_master }}" state=present

to:
lineinfile: dest=/etc/hosts regexp="{{ mysql_repl_master }}" line="{{ hostvars[mysql_repl_master].ansible_default_ipv4.address + ' ' + mysql_repl_master }}" state=present

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant