@@ -17,7 +17,7 @@ technologies as Ansible, containers, bash scripts, and more.
1717
1818---
1919
20- The ProLUG Security Course (PSC ) utilizes [ mdBook] ( https://github.com/rust-lang/mdBook )
20+ The ProLUG Security Course (psc ) utilizes [ mdBook] ( https://github.com/rust-lang/mdBook )
2121(markdown Book), a friendly and popular markdown utility that quickly exports
2222files and web structures for documentation or general website use cases.
2323
@@ -32,7 +32,7 @@ Below is the current workflow that deploys the Git Page for the course:
3232
3333</div >
3434
35- To achieve this workflow locally the following environment and dependencies are
35+ To achieve this deployment locally the following environment and dependencies are
3636required:
3737
3838<dl >
@@ -60,12 +60,11 @@ environments if things go awry.
6060< https://github.com/ProfessionalLinuxUsersGroup/psc/blob/main/src/assets/deploy/ansible-playbook.yml >
6161
6262To use this playbook, your machine(s)/containers must be configured correctly for Ansible.
63- If you don't know the requirements to administer a machine via Ansible, documentation
63+ If you don't know the requirements to administer a machine via Ansible documentation
6464has been provided below.
6565
6666<div class = warning >
67- This playbook will need to be modified based on which distribution or package management
68- tool is configured.
67+ This playbook attempts to install and initialize dependencies based on APT and DNF package managers only.
6968</div >
7069
7170Getting started with Ansible:
@@ -95,29 +94,29 @@ Tested with Rocky 9 and Ubuntu 24.04 Containers.
9594APT frontends:
9695
9796``` bash
98- #! /bin/bash
97+ #! /usr/ bin/env bash
9998apt-get update
10099apt-get -y install apache2 git gcc rustc-1.80 cargo-1.80
101- cargo-1.80 install --locked mdbook
102- systemctl enable apache2 && systemctl start apache2
100+ cargo-1.80 install --locked mdbook@0.4.48
101+ systemctl enable --now apache2
103102cd && git clone https://github.com/ProfessionalLinuxUsersGroup/psc
104103echo ' PATH=$PATH:~/.cargo/bin/' | tee -a ~ /.profile
105- export PATH=$PATH :~ /.cargo/bin/ && echo $PATH
104+ export PATH=$PATH :~ /.cargo/bin/ && echo $PATH | grep cargo
106105cd ~ /psc && mdbook build -d /var/www/html
107106systemctl restart apache2
108107```
109108
110109DNF frontends:
111110
112111``` bash
113- #! /bin/bash
112+ #! /usr/ bin/env bash
114113dnf update
115114dnf install -y httpd git gcc rust cargo
116115cargo install --locked mdbook
117- systemctl enable httpd && systemctl start httpd
116+ systemctl enable --now httpd
118117cd && git clone https://github.com/ProfessionalLinuxUsersGroup/psc
119118echo ' PATH=$PATH:~/.cargo/bin/' | tee -a ~ /.bash_profile
120- export PATH=$PATH :~ /.cargo/bin/ && echo $PATH
119+ export PATH=$PATH :~ /.cargo/bin/ && echo $PATH | grep cargo
121120cd ~ /psc && mdbook build -d /var/www/html
122121systemctl restart httpd
123122```
@@ -138,8 +137,8 @@ From there you should be able to see any changes you have made are reflected.
138137
139138#### Or send commands over to a networked container or machine:
140139
141- ** Note:** To minimize complexity and given the nature of commands over SSH, these
142- commands will need to utilize absolute paths.
140+ ** Note:** To minimize complexity and given the nature of commands over SSH,
141+ these commands will need to utilize absolute paths.
143142
144143``` bash
145144scp {working directory}/{targeted document} {TARGET_IP}:/root/psc/src/{targeted document}
0 commit comments