Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion docs/book/v2/setup/setup-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Update/Upgrade system packages:
sudo dnf upgrade -y
```

Now, install the latest version of **Ansible Core** and run **ansible-galaxy** in order to install collections:
Now, install the latest version of **Ansible Core** and run **ansible-galaxy** to install collections:

```shell
sudo dnf install ansible-core -y
Expand Down
2 changes: 1 addition & 1 deletion wsl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Update/Upgrade system packages:
sudo dnf upgrade -y
```

Now, install the latest version of **Ansible Core** and run **ansible-galaxy** in order to install collections:
Now, install the latest version of **Ansible Core** and run **ansible-galaxy** to install collections:

```shell
sudo dnf install ansible-core -y
Expand Down
1 change: 1 addition & 0 deletions wsl/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
vars_files:
- ./config.yml
- ./roles/apache/vars/main.yml
- ./roles/system/vars/main.yml
tasks:
- name: Install and configure packages
include_role:
Expand Down
10 changes: 10 additions & 0 deletions wsl/roles/apache/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
- httpd
- httpd-tools
state: latest
- name: Ensure /run/httpd directory exists on Apache startup
ansible.builtin.lineinfile:
path: "{{ etc_rc_d_rc_local_path }}"
line: "{{ item }}"
create: yes
insertafter: EOF
loop:
- "# Ensure /run/httpd directory exists on Apache startup"
- "/usr/bin/mkdir -p /run/httpd"
- "/usr/bin/install -d -o apache -g apache -m 0755 /run/httpd"
- name: Enable and start Apache service
command: systemctl enable --now httpd
- name: Fix Apache home directory ownership
Expand Down
10 changes: 10 additions & 0 deletions wsl/roles/mariadb/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
---
- name: Install MariaDB 11.4
command: "dnf install python3-mysqlclient mariadb-server -y"
- name: Ensure /run/mariadb directory exists on MariaDB startup
ansible.builtin.lineinfile:
path: "{{ etc_rc_d_rc_local_path }}"
line: "{{ item }}"
create: yes
insertafter: EOF
loop:
- "# Ensure /run/mariadb directory exists on MariaDB startup"
- "/usr/bin/mkdir -p /run/mariadb"
- "/usr/bin/chown mysql:mysql /run/mariadb"
- name: Enable and start MariaDB service
command: systemctl enable --now mariadb
- name: Set MariaDB root password
Expand Down
4 changes: 4 additions & 0 deletions wsl/roles/system/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@
template:
src: bash_profile.j2
dest: "{{ bash_profile_dest }}"
- name: Ensure /etc/rc.d/rc.local is executable
file:
path: "{{ etc_rc_d_rc_local_path }}"
mode: '0755'
1 change: 1 addition & 0 deletions wsl/roles/system/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
wsl_config_dest: /etc/wsl.conf
bash_profile_dest: "/home/{{ config.system.username }}/.bash_profile"
etc_rc_d_rc_local_path: "/etc/rc.d/rc.local"