Hello Everyone,

I have a ubuntu 14 server and I simply want to have latest version of php 5 
on my machine.
I add a PPA repo and I ran following playbook to install my php extensions 
but *my PHP version is keep getting upgraded.*

I don't understand what I need to do to only get PHP 5.6.x
As soon as I ran my playbook, it install 4 different php version: 5.5  5.6 
 7.0  7.1

Please help.


---
- name: Add ppa Repository to get latest php5.xxx
  become: yes
  apt_repository: 
    repo: ppa:ondrej/php
    update_cache: true

- name: Install required php extensions
  apt: name={{ item }} update_cache=yes state=present
  become: yes
  with_items:
    - php5.6-cli
    - php5.6
    - php5.6-gd
    - php5.6-mcrypt
    - php5.6-curl
    - php5.6-fpm
    - php5.6-mbstring
    - php5.6-mysql
    - php5.6-imagick
    - mcrypt
    - curl
    - unzip
    - zip
    - git
    - python-software-properties


-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/347be0eb-7ca8-4cc8-9573-a5cecb6a23d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to