Erro do Mysql na tarefa Ansible

0

Olá, estou executando o Ansible com o Vagrant. Mas com uma das minhas tarefas do Mysql eu recebo o seguinte erro

TASK: [MySQL | Delete anonymous MySQL server user for example.com] ************ fatal: [default] => failed to parse: SUDO-SUCCESS-jqnhqbekvsvfiqwuchtanssqtcwurcxi Traceback (most recent call last): File "/home/vagrant/.ansible/tmp/ansible-1391947041.93-180495295089354/mysql_user", line 1490, in main() File "/home/vagrant/.ansible/tmp/ansible-1391947041.93-180495295089354/mysql_user", line 401, in main check_implicit_admin=dict(default=False), File "/home/vagrant/.ansible/tmp/ansible-1391947041.93-180495295089354/mysql_user", line 648, in init (self.params, self.args) = self._load_params() File "/home/vagrant/.ansible/tmp/ansible-1391947041.93-180495295089354/mysql_user", line 1191, in _load_params items = shlex.split(args) File "/usr/lib/python2.7/shlex.py", line 279, in split return list(lex) File "/usr/lib/python2.7/shlex.py", line 269, in next token = self.get_token() File "/usr/lib/python2.7/shlex.py", line 96, in get_token raw = self.read_token() File "/usr/lib/python2.7/shlex.py", line 172, in read_token raise ValueError, "No closing quotation" ValueError: No closing quotation

Como eu poderia resolver isso?

EDITAR

Esta é a tarefa

  • name: MySQL | Delete anonymous MySQL server user for {{ server_hostname }} action: mysql_user user="" host="{{ server_hostname }} state="absent" tags: common
    
por sanders 13.02.2014 / 21:58

1 resposta

2

Você esqueceu de fechar aspas. Aqui está a tarefa correta:

- mysql_user: user="" host="{{ server_hostname }}" state="absent"
  tags: common
    
por 14.02.2014 / 10:22

Tags