From 043a273589c55b8c55df2e155582ede596092c38 Mon Sep 17 00:00:00 2001 From: Elam Monnot Date: Wed, 25 Jan 2023 15:59:35 +0100 Subject: [PATCH] nouveau role lb-web --- roles/lb-web/tasks/main.yml | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/roles/lb-web/tasks/main.yml b/roles/lb-web/tasks/main.yml index d1c92d8..6765d6d 100644 --- a/roles/lb-web/tasks/main.yml +++ b/roles/lb-web/tasks/main.yml @@ -1,11 +1,16 @@ ---- - - name: creation repertoir - file: - path: /home/ - state: directory +--- + - name: installation php et apache ... + apt: + name: + - apache2 + - php + - php-mbstring + - php-mysql + - mariadb-client + state: present - name: download and extract wordpress unarchive: - src: "{{ depl_url }}/{{ depl_wordpress }}" + src: https://fr.wordpress.org/latest-fr_FR.tar.gz dest: /home/ remote_src: yes owner: www-data @@ -25,14 +30,3 @@ recurse: yes owner: 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