2
respostas

[Projeto] erro no ansible


  • hosts: all tasks:
    • name: 'Instala o PHP5' ansible.builtin.apt: pkg:
      • apache2
      • ghostscript
      • libapache2-mod-php
      • mysql-server
      • php
      • php-bcmath
      • php-curl
      • php-imagick
      • php-intl
      • php-json
      • php-mbstring
      • php-mysql
      • php-xml
      • php-zip state: latest become: yes
    • name: Create a directory if it does not exist ansible.builtin.file: path: /srv/www state: directory owner: www-data group: www-data
    • name: Unarchive a file that needs to be downloaded ansible.builtin.unarchive: src: https://wordpress.org/latest.tar.gz dest: /srv/www remote_src: yes became: yes

esta acontecendo esse erro qdo vou executar, mas não encontrei nada de errado.

ERROR! conflicting action statements: ansible.builtin.unarchive, became

The error appears to be in '/home/rafa/ansible/provisioning.yml': line 29, column 7, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

    group: www-data
- name: Unarchive a file that needs to be downloaded
  ^ here
2 respostas

Ja escontrei o erro eu estava escrevendo became e não become =(

Oii, Rafael, espero que você esteja bem!

Parabéns por ter encontrado o erro. Impressionante como só uma letrinha faz muita diferença, né?

Se outra dúvida surgir, estamos disponíveis aqui. Obrigada por compartilhar conosco o que estava acontecendo!

Abraços!

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