Commit da6c36f5 authored by Okhin's avatar Okhin
Browse files

Adding tasks

parent 42e28e07
Pipeline #2435 failed with stages
- geerlingguy.php
- name: crée un utilisateur système pour wordpress
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
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 }}"
Supports Markdown
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