invalid output was: SUDO-SUCCESS-grbzzdkcydzzgrmrppyxzipcdzydincy

Hi, guys. Im trying to connect a local Vagrant machine using ansible with a CoreOs VM on the cloud. Right now, im getting

GATHERING FACTS *************************************************************** 
<[remote ip]> ESTABLISH CONNECTION FOR USER: core
<[remote ip]> REMOTE_MODULE setup
<[remote ip]> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'IdentityFile="/home/ubuntu/ansible/key.key"', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=core', '-o', 'ConnectTimeout=10', '[remote ip]', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1415022816.17-155782294991907 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1415022816.17-155782294991907 && echo $HOME/.ansible/tmp/ansible-tmp-1415022816.17-155782294991907'"]
<[remote ip]> PUT /tmp/tmp_TeW2o TO /home/core/.ansible/tmp/ansible-tmp-1415022816.17-155782294991907/setup
<[remote ip]> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'IdentityFile="/home/ubuntu/ansible/key.key"', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=core', '-o', 'ConnectTimeout=10', '[remote ip]', u'/bin/sh -c 

If i ssh with the same key, connection is established ok.
This is my config in hosts

[core-os]
[remote dir] ansible_ssh_host=[remote ip] ansible_ssh_port=22 ansible_ssh_private_key_file=/home/ubuntu/ansible/key.key ansible_ssh_user=core

#since coreos dont have python
[core-os:vars]
ansible_python_interpreter=“PATH=/home/core/bin:/usr/bin/python”
“/etc/ansible/hosts” 53L, 1285C


and in task.yml

  • hosts: core-os
    gather_facts: True
    remote_user: core
    sudo: True
    tasks:
    • name: Create folder
      file: path=/test_folder state=directory

My Ansible build is

ansible 1.7.2


Thanks in advancesudo -k && sudo -H -S -p "[sudo via ansible, key=pmiawdwltbwgrnyzlxaqtkxgslagzuqy] password: " -u root /bin/sh -c 

If i ssh with the same key, connection is established ok.
This is my config in hosts

[core-os]
[remote dir] ansible_ssh_host=[remote ip] ansible_ssh_port=22 ansible_ssh_private_key_file=/home/ubuntu/ansible/key.key ansible_ssh_user=core

#since coreos dont have python
[core-os:vars]
ansible_python_interpreter=“PATH=/home/core/bin:/usr/bin/python”
“/etc/ansible/hosts” 53L, 1285C


and in task.yml

  • hosts: core-os
    gather_facts: True
    remote_user: core
    sudo: True
    tasks:
    • name: Create folder
      file: path=/test_folder state=directory

My Ansible build is

ansible 1.7.2


Thanks in advance"

If i ssh with the same key, connection is established ok.
This is my config in hosts

[core-os]
[remote dir] ansible_ssh_host=[remote ip] ansible_ssh_port=22 ansible_ssh_private_key_file=/home/ubuntu/ansible/key.key ansible_ssh_user=core

#since coreos dont have python
[core-os:vars]
ansible_python_interpreter=“PATH=/home/core/bin:/usr/bin/python”
“/etc/ansible/hosts” 53L, 1285C


and in task.yml

  • hosts: core-os
    gather_facts: True
    remote_user: core
    sudo: True
    tasks:
    • name: Create folder
      file: path=/test_folder state=directory

My Ansible build is

ansible 1.7.2


Thanks in advance"

If i ssh with the same key, connection is established ok.
This is my config in hosts

[core-os]
[remote dir] ansible_ssh_host=[remote ip] ansible_ssh_port=22 ansible_ssh_private_key_file=/home/ubuntu/ansible/key.key ansible_ssh_user=core

#since coreos dont have python
[core-os:vars]
ansible_python_interpreter=“PATH=/home/core/bin:/usr/bin/python”
“/etc/ansible/hosts” 53L, 1285C


and in task.yml

  • hosts: core-os
    gather_facts: True
    remote_user: core
    sudo: True
    tasks:
    • name: Create folder
      file: path=/test_folder state=directory

My Ansible build is

ansible 1.7.2


Thanks in advanceecho SUDO-SUCCESS-pmiawdwltbwgrnyzlxaqtkxgslagzuqy; LANG=C LC_CTYPE=C PATH=/home/core/bin:/usr/bin/python /home/core/.ansible/tmp/ansible-tmp-1415022816.17-155782294991907/setup; rm -rf /home/core/.ansible/tmp/ansible-tmp-1415022816.17-155782294991907/ >/dev/null 2>&1

If i ssh with the same key, connection is established ok.
This is my config in hosts

[core-os]
[remote dir] ansible_ssh_host=[remote ip] ansible_ssh_port=22 ansible_ssh_private_key_file=/home/ubuntu/ansible/key.key ansible_ssh_user=core

#since coreos dont have python
[core-os:vars]
ansible_python_interpreter=“PATH=/home/core/bin:/usr/bin/python”
“/etc/ansible/hosts” 53L, 1285C


and in task.yml

  • hosts: core-os
    gather_facts: True
    remote_user: core
    sudo: True
    tasks:
    • name: Create folder
      file: path=/test_folder state=directory

My Ansible build is

ansible 1.7.2


Thanks in advance"

If i ssh with the same key, connection is established ok.
This is my config in hosts

[core-os]
[remote dir] ansible_ssh_host=[remote ip] ansible_ssh_port=22 ansible_ssh_private_key_file=/home/ubuntu/ansible/key.key ansible_ssh_user=core

#since coreos dont have python
[core-os:vars]
ansible_python_interpreter=“PATH=/home/core/bin:/usr/bin/python”
“/etc/ansible/hosts” 53L, 1285C


and in task.yml

  • hosts: core-os
    gather_facts: True
    remote_user: core
    sudo: True
    tasks:
    • name: Create folder
      file: path=/test_folder state=directory

My Ansible build is

ansible 1.7.2


Thanks in advance"

If i ssh with the same key, connection is established ok.
This is my config in hosts

[core-os]
[remote dir] ansible_ssh_host=[remote ip] ansible_ssh_port=22 ansible_ssh_private_key_file=/home/ubuntu/ansible/key.key ansible_ssh_user=core

#since coreos dont have python
[core-os:vars]
ansible_python_interpreter=“PATH=/home/core/bin:/usr/bin/python”
“/etc/ansible/hosts” 53L, 1285C


and in task.yml

  • hosts: core-os
    gather_facts: True
    remote_user: core
    sudo: True
    tasks:
    • name: Create folder
      file: path=/test_folder state=directory

My Ansible build is

ansible 1.7.2


Thanks in advance

If i ssh with the same key, connection is established ok.
This is my config in hosts

[core-os]
[remote dir] ansible_ssh_host=[remote ip] ansible_ssh_port=22 ansible_ssh_private_key_file=/home/ubuntu/ansible/key.key ansible_ssh_user=core

#since coreos dont have python
[core-os:vars]
ansible_python_interpreter=“PATH=/home/core/bin:/usr/bin/python”
“/etc/ansible/hosts” 53L, 1285C


and in task.yml

  • hosts: core-os
    gather_facts: True
    remote_user: core
    sudo: True
    tasks:
    • name: Create folder
      file: path=/test_folder state=directory

My Ansible build is

ansible 1.7.2


Thanks in advance']
failed: [[remote dir]] => {"failed": true, "parsed": false}
invalid output was: SUDO-SUCCESS-pmiawdwltbwgrnyzlxaqtkxgslagzuqy
/bin/sh: /home/core/.ansible/tmp/ansible-tmp-1415022816.17-155782294991907/setup: Permission denied
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 5501
debug3: mux_client_request_session: session request sent
debug1: mux_client_request_session: master session id: 2
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 0
Shared connection to [remote ip] closed.

If i ssh with the same key, connection is established ok.
This is my config in hosts

[core-os]
[remote dir] ansible_ssh_host=[remote ip] ansible_ssh_port=22 ansible_ssh_private_key_file=/home/ubuntu/ansible/key.key ansible_ssh_user=core

#since coreos dont have python
[core-os:vars]
ansible_python_interpreter="PATH=/home/core/bin:/usr/bin/python"
"/etc/ansible/hosts" 53L, 1285C 

and in task.yml

- hosts: core-os
  gather_facts: True
  remote_user: core
  sudo: True 
  tasks:
  - name: Create folder 
    file: path=/test_folder state=directory

My Ansible build is

ansible 1.7.2

Thanks in advance