-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
containerized-wordpress.yml
86 lines (73 loc) · 2.43 KB
/
containerized-wordpress.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
---
# after variable input, run all roles necessary to deploy and run (out of box)
# WordPress instance: 3 separate containers running WordPress, Nginx (Let's Encrypt) and MySQL
- hosts: aws_wp
remote_user: "{{ system_user }}"
become: yes
gather_facts: yes
vars_prompt:
- name: distribution
prompt: "\n------
\n\nEnter the number of Linux distribution you're deploying to:\n\n1. Ubuntu, Debian\n2. CentOS, RedHat\n\n"
private: no
default: "1"
- name: system_user
prompt: "\n------
\n\n What is the system username?"
private: no
default: "ubuntu"
- name: domain
prompt: "\n------
\n\nSpecify blog URL"
private: no
default: "foolcontrol.org"
- name: stage
prompt: "\n------
\n\nIs specified site live (DNS is setup)?
\n\nImportant info: https://goo.gl/XMbnPH"
private: no
default: "staging"
- name: wp_version
prompt: "\n------
\n\nSpecify WordPress version you'd like to use"
private: no
default: "5.2.3"
- name: wp_db_name
prompt: "\n------
\n\nSpecify WordPress database name"
private: no
default: "wordpress"
- name: wp_db_user
prompt: "\n------
\n\nSpecify WordPress database user"
private: no
default: "admin"
- name: wp_db_psw
prompt: "\n------
\n\nSpecify WordPress database password"
private: no
default: "change-M3"
- name: wp_db_tb_pre
prompt: "\n------
\n\nSpecify WordPress table prefix"
private: no
default: "wp_"
- name: wp_db_host
prompt: "\n------
\n\nSpecify WordPress host"
private: no
default: "mysql"
- name: db_root_psw
prompt: "\n------
\n\nSpecify database (MySQL) root password"
private: yes
default: "change-M3"
confirm: yes
roles:
- { role: AdnanHodzic.python-ubuntu-bootstrap, when: distribution == "1"}
- { role: AdnanHodzic.system-upgrade, when: distribution == "1"}
- { role: AdnanHodzic.docker-compose, when: distribution == "1"}
- { role: ansible-role-python-centos-bootstrap, when: distribution == "2" }
- { role: ansible-role-centos-system-upgrade, when: distribution == "2" }
- { role: ansible-role-centos-docker-compose-setup, when: distribution == "2" }
- AdnanHodzic.containerized-wordpress