From: Alexander Barton Date: Mon, 23 Oct 2017 12:10:03 +0000 (+0200) Subject: New "apache2-php7" role X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=AnsibleRoles.git;a=commitdiff_plain;h=7b05062b243ad235874c57e74969b6197f5e0198 New "apache2-php7" role --- diff --git a/roles/apache2-php7/meta/main.yml b/roles/apache2-php7/meta/main.yml new file mode 100644 index 0000000..c369c21 --- /dev/null +++ b/roles/apache2-php7/meta/main.yml @@ -0,0 +1,5 @@ +--- +# apache2-php7 meta + +dependencies: + - { role: apache2 } diff --git a/roles/apache2-php7/tasks/main.yml b/roles/apache2-php7/tasks/main.yml new file mode 100644 index 0000000..47eaa91 --- /dev/null +++ b/roles/apache2-php7/tasks/main.yml @@ -0,0 +1,26 @@ +--- +# apache2-php7 tasks + +- name: install packages for Apache 2 with PHP 7 + tags: + - apache + - packages + apt: > + state=installed + name={{ item }} + with_items: + - libapache2-mod-php + - php + - php-cli + - php-mysql + notify: + - restart "apache2" + +- name: ensure service "apache2" is enabled and started + tags: + - apache + - services + service: > + enabled=yes + name=apache2 + state=started