mise au point atelier condition
This commit is contained in:
@@ -51,4 +51,8 @@
|
||||
dest: "{{ item.documentroot }}/index.html"
|
||||
mode: 0644
|
||||
with_items:
|
||||
- "{{ apache_vhosts }}"
|
||||
- "{{ apache_vhosts }}"
|
||||
|
||||
- name: include php stuff
|
||||
include_tasks: php.yml
|
||||
when: use_php
|
||||
20
20_conditions/myapache4/tasks/php.yml
Normal file
20
20_conditions/myapache4/tasks/php.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: install php-fpm
|
||||
yum:
|
||||
name: php-fpm
|
||||
state: present
|
||||
|
||||
- name: start php-fpm
|
||||
service:
|
||||
name: php-fpm
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
- name: create info file
|
||||
copy:
|
||||
src: info.php
|
||||
dest: "{{ item.documentroot }}/info.php"
|
||||
mode: 0644
|
||||
with_items:
|
||||
- "{{ apache_vhosts }}"
|
||||
|
||||
Reference in New Issue
Block a user