Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wordpress-lamp: Minor fixes #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion wordpress-lamp_ubuntu1804/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

- name: Install LAMP Packages
apt: name={{ item }} update_cache=yes state=latest
loop: [ 'apache2', 'mysql-server', 'python3-pymysql', 'php', 'php-mysql', 'libapache2-mod-php' ]
loop: [ 'apache2', 'mysql-server', 'python3-pymysql', 'python-pymysql', 'php', 'php-mysql', 'libapache2-mod-php', 'ufw' ]
tags: [ system ]

- name: Install PHP Extensions
Expand Down Expand Up @@ -69,6 +69,7 @@
state: absent
login_user: root
login_password: "{{ mysql_root_password }}"
login_unix_socket: /var/run/mysqld/mysqld.sock
tags: [ mysql ]

- name: Remove the MySQL test database
Expand All @@ -77,6 +78,7 @@
state: absent
login_user: root
login_password: "{{ mysql_root_password }}"
login_unix_socket: /var/run/mysqld/mysqld.sock
tags: [ mysql ]

- name: Creates database for WordPress
Expand All @@ -85,6 +87,7 @@
state: present
login_user: root
login_password: "{{ mysql_root_password }}"
login_unix_socket: /var/run/mysqld/mysqld.sock
tags: [ mysql ]

- name: Create MySQL user for WordPress
Expand All @@ -95,6 +98,7 @@
state: present
login_user: root
login_password: "{{ mysql_root_password }}"
login_unix_socket: /var/run/mysqld/mysqld.sock
tags: [ mysql ]

# UFW Configuration
Expand Down