lab:stack_of_nucs:ansible_playbook_-_fah_removal
This is an old revision of the document!
Table of Contents
Ansible Playbook - FAH Removal
In our previous step we set up FAH on our Stack of NUCs.
Now we are going to disable the service and uninstall it. In the last step there was an optional step to “finish folding”. Bonus points for doing this.
Purpose:
- Demonstrate stopping and removing an installed service workload
Step 1 - Connect to the Ansible Control Node
Step 2 - Create the Playbook
Create the file /home/ansible/my-project/fah/removefah.yml
- removefah.yml
--- - hosts: all become: true become_user: root tasks: - name: Stop and disable FAHClient.service ansible.builtin.service: name: FAHClient.service state: stopped enabled: false - name: Wait for termination of all FaH client processes wait_for: path: /var/run/fahclient.pid state: absent - name: Remove fahclient package apt: name: fahclient state: absent autoclean: true purge: true - name: Reboot reboot:
Step 3 - Test the Playbook
ansible-playbook removefah.yml
Next Step
Now that we have removed the CPU-hungry FAH service, we go next to installing Kubernetes.
Optional
Cyber security students may want to deploy Hashtopolis in the Lab. This deploys a distributed hashcat cluster for brute forcing password hashes.
lab/stack_of_nucs/ansible_playbook_-_fah_removal.1684607782.txt.gz · Last modified: 2023/05/20 18:36 by user