diff --git a/php-fpm/README.md b/php-fpm/README.md new file mode 100644 index 00000000..bac322fe --- /dev/null +++ b/php-fpm/README.md @@ -0,0 +1,11 @@ +# PHP-FPM + +Installation and basic configuration of php-fpm + +## Tasks + +Minimal configuration is in `tasks/main.yml` + +## Available variables + +The full list of variables (with default values) can be found in `defaults/main.yml`. diff --git a/php-fpm/defaults/main.yml b/php-fpm/defaults/main.yml new file mode 100644 index 00000000..ed97d539 --- /dev/null +++ b/php-fpm/defaults/main.yml @@ -0,0 +1 @@ +--- diff --git a/php-fpm/handlers/main.yml b/php-fpm/handlers/main.yml new file mode 100644 index 00000000..31c87470 --- /dev/null +++ b/php-fpm/handlers/main.yml @@ -0,0 +1,5 @@ +--- +- name: restart php-fpm + service: + name: php-fpm + state: restarted diff --git a/php-fpm/meta/main.yml b/php-fpm/meta/main.yml new file mode 100644 index 00000000..cc6a2d9f --- /dev/null +++ b/php-fpm/meta/main.yml @@ -0,0 +1,19 @@ +galaxy_info: + author: Evolix + description: Installation and basic configuration of php-fpm. + + issue_tracker_url: https://forge.evolix.org/projects/ansible-roles/issues + + license: GPLv2 + + min_ansible_version: 2.0 + + platforms: + - name: Debian + versions: + - jessie + +dependencies: [] + # List your role dependencies here, one per line. + # Be sure to remove the '[]' above if you add dependencies + # to this list. diff --git a/php-fpm/tasks/main.yml b/php-fpm/tasks/main.yml new file mode 100644 index 00000000..3131af3b --- /dev/null +++ b/php-fpm/tasks/main.yml @@ -0,0 +1,4 @@ +- name: ensure packages are installed + apt: + name: php5-fpm + state: present