Ansible (Problem install PHP)

407 views
Skip to first unread message

Artur001

unread,
Nov 1, 2017, 3:37:21 PM11/1/17
to Ansible Project
My main.yml
Введи- name: add php ppa
  apt_repository
: repo='ppa:ondrej/php' state=present

- name: update apt cache
  apt
: update_cache=yes

- name: install php requirements for joomla
  apt
: name=php{{ php.version }}-{{ item }} state=present
  with_items
:
   
- json
   
- xml
   
- mbstring
   
- intl
   
- apcache
   
- mysql
   
- pgsql те код...


Введите код.TASK [php : install php requirements for joomla] *******************************
failed: [joomla] (item=[u'php7.1-json', u'php7.1-xml', u'php7.1-mbstring', u'php7.1-intl', u'php7.1-apcache', u'php7.1-mysql', u'php7.1-pgsql']) => {"changed": false, "failed": true, "item": ["php7.1-json", "php7.1-xml", "php7.1-mbstring", "php7.1-intl", "php7.1-apcache", "php7.1-mysql", "php7.1-pgsql"], "msg": "No package matching 'php7.1-apcache' is available"}
    to
retry, use: --limit @/home/artur/php-joomla-vm/provisioning/playbook.retry
..

What is it problem?

Brian Coca

unread,
Nov 1, 2017, 4:02:20 PM11/1/17
to Ansible Project
its apache not apcache

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/14e225d4-6ab8-4b4a-8666-cf6cfeac5d45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Artur001

unread,
Nov 2, 2017, 3:42:42 AM11/2/17
to Ansible Project
Thank you.
But problem stays.

TASK [php : install php requirements for joomla] *******************************

failed
: [joomla] (item=[u'php7.1-json', u'php7.1-xml', u'php7.1-mbstring', u'php7.1-intl', u'php7.1-apache', u'php7.1-mysql', u'php7.1-pgsql']) => {"changed": false, "failed": true, "item": ["php7.1-json", "php7.1-xml", "php7.1-mbstring", "php7.1-intl", "php7.1-apache", "php7.1-mysql", "php7.1-pgsql"], "msg": "No package matching 'php7.1-apache' is available"}

Artur001

unread,
Nov 2, 2017, 6:10:25 AM11/2/17
to Ansible Project
my project
Project

Toshio Kuratomi

unread,
Nov 2, 2017, 8:16:20 AM11/2/17
to ansible...@googlegroups.com
There's no package named php7.1-apcache in that ppa.  correct the spelling.

Packages in that ppa which start with php7.1 are here http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.1/

-Toshio

--

Mehul Ved

unread,
Nov 2, 2017, 8:25:12 AM11/2/17
to ansible...@googlegroups.com
I believe the package you're looking for is php-opcache. It's there in the ppa too. opcache is the object caching module in php - http://php.net/manual/en/intro.opcache.php 

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
With Regards,
Mehul Ved

Artur001

unread,
Nov 2, 2017, 11:02:38 AM11/2/17
to Ansible Project
This package is present:

~/Загрузки$ php -v
PHP
7.1.11-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Oct 27 2017 13:49:56) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
   
with Zend OPcache v7.1.11-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies


Werner Flamme

unread,
Nov 2, 2017, 11:24:03 AM11/2/17
to ansible...@googlegroups.com
Artur001 [02.11.2017 16:02]:
Following the error text you sent, you do not try to install
php7-opcache, but php7-apache.

- name: install php requirements for joomla
apt: name=php{{ php.version }}-{{ item }} state=present
with_items:
[...]
- apcache
[...]

this should read opcache then.

--


Artur001

unread,
Nov 2, 2017, 1:12:36 PM11/2/17
to Ansible Project
You right!
I did not see message of Toshlo Kuratoml.

четверг, 2 ноября 2017 г., 18:24:03 UTC+3 пользователь Werner Flamme написал:
Reply all
Reply to author
Forward
0 new messages