Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wordpress
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LQDN Adminsys
piops-roles
wordpress
Commits
700c2c23
Commit
700c2c23
authored
Feb 26, 2019
by
Okhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Amélioration des taches wordpress
parent
1e7e34f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
11 deletions
+33
-11
tasks/main.yml
tasks/main.yml
+33
-11
No files found.
tasks/main.yml
View file @
700c2c23
---
-
block
:
-
name
:
ajout d'un répertoire pour le core wordpress
file
:
status
:
directory
src
:
"
{{
wordpress_path
}}"
mode
:
0755
owner
:
"
{{
wordpress_unix_user
}}"
group
:
"
{{
webserver_user
}}
"
-
name
:
ajout d'un répertoire pour le core wordpress
file
:
state
:
directory
path
:
"
{{
wordpress_path
}}"
mode
:
0755
owner
:
"
{{
wordpress_unix_user
}}"
group
:
"
{{
webserver_user
}}"
# This is vault-encrypted, but not SQL encrypted
-
name
:
ajout d'un utilisateur mysql pour wordpress
mysql_user
:
name
:
"
{{
wordpress_dbuser
}}"
host
:
localhost
state
:
present
password
:
"
{{
wordpress_dbpass
}}"
priv
:
'
*.*:CREATE'
-
block
:
# We want to always check that, in order to test other commands
# And we cannot fail (the purpose of this command is to fail if wp isn't installed, to trigger
# a change later
-
name
:
est-ce que wordpress est installé ?
command
:
"
php
{{
wordpress_wpcli_path
}}
core
is-installed
--path={{
wordpress_path
}}"
register
:
wordpress
changed_when
:
"
wordpress.rc
>=
1"
failed_when
:
False
check_mode
:
no
-
name
:
téléchargement de wordpress
command
:
"
php
{{
wordpress_wpcli_path
}}
core
download
--path={{
wordpress_path
}}"
args
:
creates
:
"
{{
wordpress_path
}}/index.php"
when
:
wordpress.changed
-
name
:
installation de worpdress
-
name
:
configuration de wordpress
command
:
"
php
{{
wordpress_wpcli_path
}}
config
create
--path={{
wordpress_path
}}
--dbuser={{
wordpress_dbuser
}}
--dbname={{
wordpress_dbname
}}
--dbpass={{
wordpress_dbpass
}}"
when
:
wordpress.changed
args
:
creates
:
"
{{
wordpress_path
}}/wp_config.php"
-
name
:
installation multisite de worpdress
command
:
"
php
{{
wordpress_wpcli_path
}}
core
multisite-install
--subdomains
--path={{
wordpress_path
}}
--url={{
wordpress_url
}}
--title={{
wordpress_title
}}
--admin_user={{
wordpress_admin_user
}}
--admin-email={{
wordpress_admin_email
}}"
when
:
wordpress.changed
...
...
@@ -26,6 +48,6 @@
-
name
:
mise à jour de la BDD de wordpress
command
:
"
php
{{
wordpress_wpcli_path
}}
core
update-db
--network
--path={{
wordpress_path
}}"
become
:
yes
become_user
:
grange
become_user
:
"
{{
wordpress_unix_user
}}"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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