Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
514 B

---
- include: service.yaml
# static: yes # see static include issue: https://github.com/ansible/ansible/issues/13485
vars:
service_name: apache2
service_packages:
- apache2
- name: disable apache2 default configuration
file: path=/etc/apache2/sites-enabled/000-default.conf state=absent
notify: restart apache2
- name: install apache2 libapache2-mod-php5
apt: name="{{ item }}" state=present
with_items:
- libapache2-mod-php5
when: php | bool
notify:
- restart apache2