Commit da6c36f5 authored by okhin's avatar okhin 🚴

Adding tasks

parent 42e28e07
Pipeline #2435 failed with stages
---
dependencies:
- geerlingguy.php
---
- name: crée un utilisateur système pour wordpress
user:
name: "{{ wordpress_unix_user }}"
comment: Utilisateur système pour wordpress
state: present
system: yes
group: "{{ webserver_user }}"
- name: télécharge la dernière version de wp-cli
get_url:
url: https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
dest: "{{ wordpress_wpcli_path }}"
owner: "{{ wordpress_unix_user }}"
mode: 0755
- name: vérifie si wp-cli est à jour
command: "php {{ wordpress_wpcli_path }} cli check-update"
register: wp_cli_update
changed_when: "wp_cli_update.stdout != 'Success: WP-CLI is at the latest version.'"
become: yes
become_user: "{{ wordpress_unix_user }}"
- name: mise à jour de wp-cli
command: "php {{ wordpress_wpcli_path }} cli update"
when: wp_cli_update.changed
become: yes
become_user: "{{ wordpress_unix_user }}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment