mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2025-01-05 18:47:34 +01:00
Make role work on Fedora.
This commit is contained in:
parent
6f140ef07f
commit
5cb6fe72fb
@ -3,7 +3,7 @@ dependencies: []
|
||||
|
||||
galaxy_info:
|
||||
author: geerlingguy
|
||||
description: PHP for RedHat/CentOS/Debian/Ubuntu.
|
||||
description: PHP for RedHat/CentOS/Fedora/Debian/Ubuntu.
|
||||
company: "Midwestern Mac, LLC"
|
||||
license: "license (BSD, MIT)"
|
||||
min_ansible_version: 2.0
|
||||
@ -12,6 +12,9 @@ galaxy_info:
|
||||
versions:
|
||||
- 6
|
||||
- 7
|
||||
- name: Fedora
|
||||
versions:
|
||||
- all
|
||||
- name: Debian
|
||||
versions:
|
||||
- all
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Ensure dependencies for building from source are installed (RedHat).
|
||||
yum: "pkg={{ item }} state=installed"
|
||||
package: "name={{ item }} state=installed"
|
||||
with_items:
|
||||
- autoconf
|
||||
- automake
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Ensure PHP packages are installed.
|
||||
yum:
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: "{{ php_packages_state }}"
|
||||
enablerepo: "{{ php_enablerepo }}"
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
pre_tasks:
|
||||
- name: Ensure build dependencies are installed (RedHat).
|
||||
yum: name=which state=present
|
||||
package: name=which state=present
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
roles:
|
||||
|
@ -11,7 +11,7 @@
|
||||
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '12.04'
|
||||
|
||||
- name: Ensure build dependencies are installed (RedHat).
|
||||
yum: name=which state=present
|
||||
package: name=which state=present
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
- name: Add repository for PHP 7.
|
||||
@ -24,5 +24,5 @@
|
||||
|
||||
roles:
|
||||
- role: geerlingguy.repo-remi
|
||||
when: ansible_os_family == 'RedHat'
|
||||
when: ansible_os_family == 'RedHat' and ansible_distribution != 'Fedora'
|
||||
- role_under_test
|
||||
|
Loading…
Reference in New Issue
Block a user