From 61390952969fa26857d2212b73ad7f8e8752b529 Mon Sep 17 00:00:00 2001 From: Elam Monnot Date: Wed, 25 Jan 2023 16:33:56 +0100 Subject: [PATCH] MAJ role lb-web --- roles/lb-web/tasks/main.yml | 48 +++++++++++++++++-------------------- s-lb-web1.yml | 1 - 2 files changed, 22 insertions(+), 27 deletions(-) diff --git a/roles/lb-web/tasks/main.yml b/roles/lb-web/tasks/main.yml index 20a8677..e04d326 100644 --- a/roles/lb-web/tasks/main.yml +++ b/roles/lb-web/tasks/main.yml @@ -1,33 +1,29 @@ --- - - name: installation php et apache ... - apt: - name: - - apache2 - - php - - php-mbstring - - php-mysql - - mariadb-client - state: present +- name: installation php et apache ... + apt: + name: + - apache2 + - php + - php-mbstring + - php-mysql + - mariadb-client + state: present - - name: download and extract wordpress - unarchive: - src: https://fr.wordpress.org/latest-fr_FR.tar.gz +- name: download and extract wordpress + unarchive: + src: https://fr.wordpress.org/latest-fr_FR.tar.gz dest: /home/ remote_src: yes - owner: www-data - group: www-data - - name: Copy sample config file - command: mv /home/wordpress/wp-config-sample.php /home/wordpress/wp-config.php creates=/home/wordpress/wp-config.php +- name: Copy sample config file + command: mv /home/wordpress/wp-config-sample.php /home/wordpress/wp-config.php creates=/home/wordpress/wp-config.php - - name: Changement du fichier de conf - copy: - src: wp-config.php - dest: /home/wordpress/wp-config.php +- name: Changement du fichier de conf + copy: + src: wp-config.php + dest: /home/wordpress/wp-config.php - - name: Attributions des permissions - file: - path: /home/wordpress - recurse: yes - owner: 33 - group: 33 +- name: Attributions des permissions + file: + path: /home/wordpress + recurse: yes diff --git a/s-lb-web1.yml b/s-lb-web1.yml index 67f50d3..7a7d540 100644 --- a/s-lb-web1.yml +++ b/s-lb-web1.yml @@ -8,4 +8,3 @@ - snmp-agent - lb-nfs-client - post -