Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
piops-roles
wpcli
Commits
da6c36f5
Commit
da6c36f5
authored
Feb 18, 2019
by
Okhin
Browse files
Adding tasks
parent
42e28e07
Pipeline
#2435
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
meta/main.yml
0 → 100644
View file @
da6c36f5
---
dependencies
:
-
geerlingguy.php
tasks/main.yml
0 → 100644
View file @
da6c36f5
---
-
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
}}"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment