Initial commit of PHP role

- Added packages needed to run Wordpress on main ONF website

Change-Id: Id810213e5cd3696310780a4b6799b471501d2184
diff --git a/tasks/Debian.yml b/tasks/Debian.yml
new file mode 100644
index 0000000..7b7c6a5
--- /dev/null
+++ b/tasks/Debian.yml
@@ -0,0 +1,42 @@
+---
+# php tasks/Debian.yml
+#
+# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
+# SPDX-License-Identifier: Apache-2.0
+
+# PHP from this PPA for Ubuntu: https://launchpad.net/~ondrej/+archive/ubuntu/php
+- name: Add PHP apt repo GPG key (Ubuntu)
+  when: 'ansible_distribution == "Ubuntu"'
+  apt_key:
+    data: "{{ lookup('file','ubuntu_ondrej_php_ppa.key') }}"
+    state: "present"
+
+- name: Add PHP apt repo (Ubuntu)
+  when: 'ansible_distribution == "Ubuntu"'
+  apt_repository:
+    repo: >-
+      deb http://ppa.launchpad.net/ondrej/php/{{ ansible_lsb['id'] | lower }}
+      {{ ansible_lsb['codename'] }} main
+    update_cache: true
+
+# PHP from this apt repo for Debian: https://deb.sury.org/
+- name: Add PHP apt repo GPG key (Debian)
+  when: 'ansible_distribution == "Debian"'
+  apt_key:
+    data: "{{ lookup('file','debian_packages_sury_org_php.gpg') }}"
+    state: "present"
+
+- name: Add PHP apt repo (Debian)
+  when: 'ansible_distribution == "Debian"'
+  apt_repository:
+    repo: "deb https://packages.sury.org/php/ {{ ansible_lsb['codename'] }} main"
+    update_cache: true
+
+- name: Install PHP packages
+  apt:
+    name: "{{ php_packages }}"
+    state: "present"
+    update_cache: true
+    cache_valid_time: 3600
+  notify:
+    - start-php