diff --git a/ubuntu/roles/php/tasks/main.yml b/ubuntu/roles/php/tasks/main.yml new file mode 100644 index 0000000..98efab7 --- /dev/null +++ b/ubuntu/roles/php/tasks/main.yml @@ -0,0 +1,5 @@ +---- +- name: Install php-fpm + apt: pkg=php-fpm state=latest +- name: Stop the php-fpm daemon for now and ensure it starts on boot + service: name=php7.0-fpm state=stopped enabled=yes diff --git a/ubuntu/site.yml b/ubuntu/site.yml index 55a2d96..40e884f 100644 --- a/ubuntu/site.yml +++ b/ubuntu/site.yml @@ -6,3 +6,10 @@ roles: - common + +- name: install PHP-FPM to required nodes + hosts: php + user: root + + roles: + - php