Compare commits

..

No commits in common. "f8e3eabb9d0e715c69bc60bfea315b262039ebb0" and "5981b67dd9f51fdf94815c098d7a3ba3a284df93" have entirely different histories.

View File

@ -1,16 +1,11 @@
--- ---
- name: installation php et apache ... - name: creation repertoir
apt: file:
name: path: /home/
- apache2 state: directory
- php
- php-mbstring
- php-mysql
- mariadb-client
state: present
- name: download and extract wordpress - name: download and extract wordpress
unarchive: unarchive:
src: https://fr.wordpress.org/latest-fr_FR.tar.gz src: "{{ depl_url }}/{{ depl_wordpress }}"
dest: /home/ dest: /home/
remote_src: yes remote_src: yes
owner: www-data owner: www-data
@ -30,3 +25,14 @@
recurse: yes recurse: yes
owner: 33 owner: 33
group: 33 group: 33
# - name: Fix permissions
# shell: chown -R www-data /var/www/wordpress/*
#
# - name: Update default Apache site
# lineinfile:
# dest=/etc/apache2/sites-enabled/000-default.conf
# regexp="(.)+DocumentRoot /var/www/html"
# line="DocumentRoot /var/www/wordpress"
# notify:
# - restart apache2