refactor ansible code in to ansible-2.0 folder, and created space for ansible-2.10
This commit is contained in:
6
ansible-2.0/roles/php7-fpm/defaults/main.yml
Normal file
6
ansible-2.0/roles/php7-fpm/defaults/main.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
# default vars
|
||||
|
||||
php7-fpm:
|
||||
packages:
|
||||
- php-zip
|
||||
4
ansible-2.0/roles/php7-fpm/tasks/devtools.yml
Normal file
4
ansible-2.0/roles/php7-fpm/tasks/devtools.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
# install php dev tools
|
||||
|
||||
|
||||
17
ansible-2.0/roles/php7-fpm/tasks/main.yml
Normal file
17
ansible-2.0/roles/php7-fpm/tasks/main.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
# install php-fpm on ubuntu16.04
|
||||
|
||||
|
||||
# install packages
|
||||
- name: Install php-fpm basics.
|
||||
apt: pkg={{ item }} state=installed
|
||||
with_items:
|
||||
- libwww-perl
|
||||
- php-fpm
|
||||
- php-zip
|
||||
|
||||
|
||||
#- name: Ensure dependencies are installed.
|
||||
# apt: pkg={{ item }} state=installed
|
||||
# when: php7-fpm.packages
|
||||
# with_items: "{{ php7-fpm.packages }}"
|
||||
Reference in New Issue
Block a user