1
resposta

Solução mais simples para o Erro ao descompactar o arquivo wordpress.tar.gz

Para solucionar esse erro mostrado abaixo,

troque aurl: 'https://wordpress.org/latest.tar.gz'

por:url: 'https://wordpress.org/wordpress-5.6.tar.gz'

e assim rodará sem erro.

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

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

TASK [Instala pacotes de dependencia do sistema operacional] ********************************************************
ok: [192.168.0.70]

TASK [Cria o banco do MySQL] ****************************************************************************************
ok: [192.168.0.70]

TASK [Cria o usuario do MySQL] **************************************************************************************
[WARNING]: The value ******** (type int) in a string field was converted to u'********' (type string). If this does
not look like what you expect, quote the entire value to ensure it does not change.
[WARNING]: Module did not set no_log for update_password
ok: [192.168.0.70]

TASK [Baixa o arquivo de instalacao do Wordpress] *******************************************************************
[WARNING]: The value True (type bool) in a string field was converted to u'True' (type string). If this does not
look like what you expect, quote the entire value to ensure it does not change.
changed: [192.168.0.70]
**
TASK [Descompacta o wordpress] **********************************************************************************************
fatal: [192.168.0.70]: FAILED! => {"changed": false, "msg": "Failed to find handler for \"/tmp/wordpress.tar.gz\". Make sure the required command to extract the file is installed. Command \"/bin/tar\" could not handle archive. Command \"unzip\" not found."}
**

PLAY RECAP **********************************************************************************************************
192.168.0.70               : ok=5    changed=1    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
1 resposta

Olá, André. Tudo bem?

Obrigado por dividir a solução, tenho certeza que vai ajudar alguém. Como a versão do WordPress já foi atualizada desde a criação do curso, a latest cria problemas de compatibilidade entre as dependências da versão do Ubuntu usada e a versão do PHP.

Bons estudos!

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software