File tree Expand file tree Collapse file tree 7 files changed +28
-2
lines changed
Expand file tree Collapse file tree 7 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Update/Upgrade system packages:
2929sudo dnf upgrade -y
3030```
3131
32- Now, install the latest version of ** Ansible Core** and run ** ansible-galaxy** in order to install collections:
32+ Now, install the latest version of ** Ansible Core** and run ** ansible-galaxy** to install collections:
3333
3434``` shell
3535sudo dnf install ansible-core -y
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ Update/Upgrade system packages:
112112sudo dnf upgrade -y
113113```
114114
115- Now, install the latest version of ** Ansible Core** and run ** ansible-galaxy** in order to install collections:
115+ Now, install the latest version of ** Ansible Core** and run ** ansible-galaxy** to install collections:
116116
117117``` shell
118118sudo dnf install ansible-core -y
Original file line number Diff line number Diff line change 77 vars_files :
88 - ./config.yml
99 - ./roles/apache/vars/main.yml
10+ - ./roles/system/vars/main.yml
1011 tasks :
1112 - name : Install and configure packages
1213 include_role :
Original file line number Diff line number Diff line change 55 - httpd
66 - httpd-tools
77 state : latest
8+ - name : Ensure /run/httpd directory exists on Apache startup
9+ ansible.builtin.lineinfile :
10+ path : " {{ etc_rc_d_rc_local_path }}"
11+ line : " {{ item }}"
12+ create : yes
13+ insertafter : EOF
14+ loop :
15+ - " # Ensure /run/httpd directory exists on Apache startup"
16+ - " /usr/bin/mkdir -p /run/httpd"
17+ - " /usr/bin/install -d -o apache -g apache -m 0755 /run/httpd"
818- name : Enable and start Apache service
919 command : systemctl enable --now httpd
1020- name : Fix Apache home directory ownership
Original file line number Diff line number Diff line change 11---
22- name : Install MariaDB 11.4
33 command : " dnf install python3-mysqlclient mariadb-server -y"
4+ - name : Ensure /run/mariadb directory exists on MariaDB startup
5+ ansible.builtin.lineinfile :
6+ path : " {{ etc_rc_d_rc_local_path }}"
7+ line : " {{ item }}"
8+ create : yes
9+ insertafter : EOF
10+ loop :
11+ - " # Ensure /run/mariadb directory exists on MariaDB startup"
12+ - " /usr/bin/mkdir -p /run/mariadb"
13+ - " /usr/bin/chown mysql:mysql /run/mariadb"
414- name : Enable and start MariaDB service
515 command : systemctl enable --now mariadb
616- name : Set MariaDB root password
Original file line number Diff line number Diff line change 2222 template :
2323 src : bash_profile.j2
2424 dest : " {{ bash_profile_dest }}"
25+ - name : Ensure /etc/rc.d/rc.local is executable
26+ file :
27+ path : " {{ etc_rc_d_rc_local_path }}"
28+ mode : ' 0755'
Original file line number Diff line number Diff line change 11---
22wsl_config_dest : /etc/wsl.conf
33bash_profile_dest : " /home/{{ config.system.username }}/.bash_profile"
4+ etc_rc_d_rc_local_path : " /etc/rc.d/rc.local"
You can’t perform that action at this time.
0 commit comments