diff --git a/roles/s-lb-wordpress/defaults/main.yml b/roles/s-lb-wordpress/defaults/main.yml new file mode 100644 index 0000000..3c252b4 --- /dev/null +++ b/roles/s-lb-wordpress/defaults/main.yml @@ -0,0 +1,2 @@ +depl_url: "http://s-adm.gsb.adm/gsbstore/" +depl_wordpress: "wordpress-5.6-fr_FR.tar.gz" diff --git a/roles/s-lb-wordpress/tasks/main.yml b/roles/s-lb-wordpress/tasks/main.yml index 821fc26..5dd3c41 100644 --- a/roles/s-lb-wordpress/tasks/main.yml +++ b/roles/s-lb-wordpress/tasks/main.yml @@ -5,9 +5,11 @@ state: directory - name: download and extract wordpress unarchive: - src: http://depl/gsbstore/wordpress-5.6-fr_FR.tar.gz + src: "{{ depl_url }}/{{ depl_wordpress }}" 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 diff --git a/s-nas.retry b/s-nas.retry new file mode 100644 index 0000000..2fbb50c --- /dev/null +++ b/s-nas.retry @@ -0,0 +1 @@ +localhost