File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 11---
22__base_packages :
3+ - atop
34 - curl
45 - git
56 - jq
67 - python3-pip
78 - vim
9+
10+ atop_interval : 10
Original file line number Diff line number Diff line change 1616 state : stopped
1717 enabled : no
1818 masked : yes
19+
20+ - name : Setup atop
21+ become : true
22+ ansible.builtin.copy :
23+ dest : " /etc/default/atop"
24+ content : |
25+ # This file is generated by Ansible, do not modify
26+ LOGOPTS="-R"
27+ LOGINTERVAL={{ atop_interval }}
28+ LOGGENERATIONS=28
29+ LOGPATH=/var/log/atop
30+ mode : 0644
31+ owner : root
32+ group : root
33+ register : atop_conf
34+
35+
36+ - name : Start and Enable atop
37+ become : yes
38+ ansible.builtin.service :
39+ name : atop
40+ state : started
41+ enabled : yes
42+
43+ - name : restart atop
44+ become : yes
45+ service :
46+ name : atop
47+ state : restarted
48+ when : atop_conf.changed
You can’t perform that action at this time.
0 commit comments