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

minor improvements #213

Merged
merged 1 commit into from
Oct 25, 2023
Merged
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
7 changes: 3 additions & 4 deletions content/en/docs/11/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ ansible-galaxy collection install ansible.eda
Enterprise Linux 9:
```bash
sudo dnf install java-17-openjdk
export JAVA_HOME=/usr/lib/jvm/jre-17-openjdk
sudo dnf install python3-pip
python3 -m venv ~/python
. ~/python/bin/activate
Expand All @@ -35,9 +36,7 @@ pip install ansible ansible-rulebook

ansible-galaxy collection install ansible.eda

sudo dnf install systemd-devel
sudo dnf install gcc
sudo dnf install python3-devel
sudo dnf install systemd-devel gcc python3-devel

pip install -r ~/.ansible/collections/ansible_collections/ansible/eda/requirements.txt
```
Expand Down Expand Up @@ -224,7 +223,7 @@ curl -H 'Content-Type: application/json' -d "{\"message\": \"webservers down\"}"
* It should check for three things:
* check if the website on one of the two webservers is down. (Same as Task 3 above)
* check if the message matches exactly the string "webservers down" (Same as Task 5 above)
* check if the message contains the string "ERROR"
* check if the message contains the string "ERROR" or "error"
* If one of the criterias above are met, do two things:
1. run the ansible shell module to print the string "WEBSERVER ISSUES, REMEDIATION IN PROGRESS." into the journald log. (Use the command `systemd-cat echo "WEBSERVER ISSUES, REMEDIATION IN PROGRESS."`)
2. run playbook `webservers.yml`
Expand Down
Loading