32 lines
575 B
YAML
32 lines
575 B
YAML
---
|
|
|
|
- name: Remove older php-zmq
|
|
apt:
|
|
name: "{{ item }}"
|
|
state: absent
|
|
with_items:
|
|
- php-zmq
|
|
|
|
- name: Install php7.0-zmq
|
|
apt:
|
|
name: "{{ item }}"
|
|
state: latest
|
|
update_cache: yes
|
|
cache_valid_time: 3600
|
|
default_release: di
|
|
with_items:
|
|
- php7.0-zmq
|
|
|
|
- name: Template zmq config to php extension dir
|
|
template:
|
|
src: "zmq.ini.j2"
|
|
dest: "{{ item }}"
|
|
mode: "0644"
|
|
owner: root
|
|
group: root
|
|
with_items:
|
|
- "/etc/php/7.0/fpm/conf.d/zmq.ini"
|
|
- "/etc/php/7.0/cli/conf.d/zmq.ini"
|
|
notify:
|
|
- restart php7.0-fpm
|