Ao acessar a URL 172.17.177.40 recebo a mensagem de --> Your server is running PHP version 5.5.9-1ubuntu4.29 but WordPress 5.2.3 requires at least 5.6.20.
Esse é meu provisioning.yml
hosts: all handlers:
- name: restart apache service: name: apache2 state: restarted become: yes
tasks:
name: 'Instalação dos pacotes de dependencia do S.O.' apt: name:
- php5
- apache2
- libapache2-mod-php5
- php5-gd
- libssh2-php
- php5-mcrypt
- mysql-server-5.6
- python-mysqldb
- php5-mysql state: latest become: yes
name: 'Criando o banco MySQL' mysql_db: name: wordpress_db login_user: root state: present
name: 'Criando usuário no BD' mysql_user: login_user: root name: lucascarmo password: 12345 priv: 'wordpress_db.*:ALL' state: present
name: 'Baixa o arquivo de instalacao do Wordpress' get_url: url: 'https://wordpress.org/latest.tar.gz' dest: '/tmp/wordpress.tar.gz'
name: 'Descompacta o Wordpress' unarchive: src: '/tmp/wordpress.tar.gz' dest: '/var/www/' remote_src: yes become: yes
copy: src: '/var/www/wordpress/wp-config-sample.php' dest: '/var/www/wordpress/wp-config.php' remote_src: yes become: yes
name: 'Configura o wp-config com as entradas do banco de dados' replace: path: '/var/www/wordpress/wp-config.php' regexp: "{{ item.regex }}" replace: "{{ item.value }}" with_items:
- { regex: 'database_name_here', value: 'wordpress_db' }
- { regex: 'username_here', value: 'lucascarmo' }
- { regex: 'password_here', value: '12345' } become: yes
name: 'Configura Apache para servir Wordpress' copy: src: 'files/000-default.conf' dest: '/etc/apache2/sites-available/000-default.conf' become: yes notify:
- restart apache
Já tentei trocar a versão do PHP para 5.6 na tasks de instalações dos pacotes de dependencia porém retorna um erro --> fatal: [172.17.177.40]: FAILED! => {"changed": false, "msg": "No package matching 'php5.6' is available"}.