- 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
- name: 'Instala o PHP5'
ansible.builtin.apt:
pkg:
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