File tree 2 files changed +33
-0
lines changed
2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
__base_packages :
3
+ - atop
3
4
- curl
4
5
- git
5
6
- jq
6
7
- python3-pip
7
8
- vim
9
+
10
+ atop_interval : 10
Original file line number Diff line number Diff line change 16
16
state : stopped
17
17
enabled : no
18
18
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