1
resposta

Erro ao executar o comando ansible-playbook provisioning.yml -u vagrant -i hosts --private-key .vagrant/machines/wordpress/virtualbox/private_key

Estou fazendo o exercício da Aula dois, porém quando eu executo o comando:

ansible-playbook provisioning.yml -u vagrant -i hosts --private-key .vagrant/machines/wordpress/virtualbox/private_key

Eu recebo o seguinte erro:

PLAY [all] ************************************************************************************************************************************************************************************

TASK [Gathering Facts] ************************************************************************************************************************************************************************
ok: [172.17.177.40]

TASK [shell] **********************************************************************************************************************************************************************************
fatal: [172.17.177.40]: FAILED! => {"changed": true, "cmd": "echo hello > /vagrant/world.txt", "delta": "0:00:00.007267", "end": "2020-11-10 12:58:59.746269", "msg": "non-zero return code", "rc": 2, "start": "2020-11-10 12:58:59.739002", "stderr": "/bin/sh: 1: cannot create /vagrant/world.txt: Operation not permitted", "stderr_lines": ["/bin/sh: 1: cannot create /vagrant/world.txt: Operation not permitted"], "stdout": "", "stdout_lines": []}

PLAY RECAP ************************************************************************************************************************************************************************************
172.17.177.40              : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

Alguém já teve um problema parecido?

1 resposta

Olá, Alexandre. Beleza?

Você pode postar o conteúdo do seu arquivo provisioning.yml? Isso vai ajudar a entender melhor o que está acontecendo.