tmichett / do374

DO374 - Developing Advanced Automation with Red Hat Ansible Automation Platform Demos and Notes
14 stars 23 forks source link

CH6 Demo for Callback Plugins #16

Open tmichett opened 11 months ago

tmichett commented 11 months ago

Fix notes ...

Fix Ansible.cfg

[defaults] inventory=inventory.yml remote_user=devops callbacks_enabled=timer, profile_tasks

callback_whitelist=timer, profile_tasks

[callback_cgroup_perf_recap] control_group=ansible_profile

tmichett commented 4 weeks ago

Fix for callback for CGROUP

Should be ...

16:48 $ cat ansible.cfg
[defaults]
inventory=inventory.yml
remote_user=devops
callbacks_enabled=timer, profile_tasks, cgroup_perf_recap
#callback_whitelist=timer, profile_tasks

[callback_cgroup_perf_recap]
control_group=ansible_profile

Leave CGroupd out of ansible.cfg unless using it and then when using it have ...


16:54 $ cat create_cgroup.txt
sudo yum install libcgroup-tools

sudo cgcreate -a devops:devops -t devops:devops -g cpuacct,memory,pids:ansible_profile
sudo cgcreate -a student:student -t student:student -g cpuacct,memory,pids:ansible_profile

cgexec -g cpuacct,memory,pids:ansible_profile ansible-playbook deploy_webservers_optimized.yml