File tree 12 files changed +38
-41
lines changed
12 files changed +38
-41
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ parseable: true
6
6
quiet: true
7
7
rulesdir:
8
8
- ./rule/directory/
9
+ #warn_list:
10
+ # - X
9
11
skip_list:
10
- - '201'
11
- - '204'
12
- - '208'
13
- - '303'
14
- - '305'
15
12
- unnamed-task
13
+ - var-naming
14
+ - risky-file-permissions
15
+ - command-instead-of-shell
16
16
use_default_rules: true
17
17
verbosity: 1
Original file line number Diff line number Diff line change 1
1
2
+ # Changelog
2
3
3
- ## Unreleased
4
+ ## 21.6
4
5
5
- ### Bugfix
6
+ ### Fixed
6
7
7
- - Logger role: Fix for working in ansible 2.9.*
8
+ - Logger role: Fixed role in ansible 2.9.* (https://github.com/Appdynamics/appdynamics-ansible/issues/71 )
9
+ - Dotnet role: Fixed automatic restart of IIS
8
10
9
11
## 21.4
10
12
26
28
- DotNet agent logger
27
29
28
30
### Removed
29
- ### Changed
31
+ ### Updated
32
+ ### Fixed
Original file line number Diff line number Diff line change 6
6
name : lxml
7
7
check_mode : yes
8
8
ignore_errors : yes
9
- register : lxmlStatus
9
+ register : lxml_status
10
10
delegate_to : localhost
11
11
changed_when : false
12
12
13
- - debug : var=lxmlStatus
13
+ - debug : var=lxml_status
14
14
15
15
- name : check lxml
16
16
set_fact :
17
17
lxml_found : True
18
- when : lxmlStatus .stdout | regex_search('lxml==.*')
18
+ when : lxml_status .stdout | regex_search('lxml==.*')
19
19
20
20
- name : Assert that lxml is installed on control node
21
21
assert :
Original file line number Diff line number Diff line change 49
49
- name : Kill running DB processes
50
50
command : " kill {{ item }}"
51
51
with_items : " {{ running_processes.stdout_lines }}"
52
- ignore_errors : yes # Skip 'kill: No such process' errors
52
+ ignore_errors : yes # Skip 'kill: No such process' errors # noqa ignore-errors
53
53
when : previous_db_agent.stat.exists
54
54
changed_when : false
55
55
Original file line number Diff line number Diff line change 9
9
- { service: was, state: restarted }
10
10
- { service: w3svc, state: started }
11
11
listen : Restart app listener
12
- ignore_errors : yes
12
+ ignore_errors : yes # noqa ignore-errors
13
13
when : monitor_all_IIS_apps | bool and restart_app | bool and iis_service.exists
Original file line number Diff line number Diff line change 32
32
log_path : " {{ dotnet_agent_dest_folder_win }}/UninstallLogs.txt"
33
33
state : absent
34
34
when : is_agent_installed.stdout | length != 0
35
- changed_when : false
35
+ tags : molecule-idempotence-notest
36
36
37
37
- name : Remove the conf file # Since it does not update during installation
38
38
win_file :
39
39
path : " C:\\ ProgramData\\ AppDynamics\\ DotNetAgent\\ Config\\ config.xml"
40
40
state : absent
41
41
force : true
42
42
when : is_agent_installed.stdout | length != 0
43
- changed_when : false
43
+ tags : molecule-idempotence-notest
44
44
45
45
- block :
46
46
- name : Install .NET agent service
53
53
notify :
54
54
- Verify .NET agent restart
55
55
- Restart app listener
56
- changed_when : false
57
56
rescue :
58
57
- name : Get log Winston.txt
59
58
win_shell : ' Get-Content {{ DOTNETAGENTFOLDER }}\Logs\Winston.txt -Tail 30'
81
80
win_file :
82
81
path : " {{ dotnet_agent_dest_folder_win }}\\ {{ dotnet_agent_dest_file }}"
83
82
state : absent
84
- changed_when : false
83
+ tags : molecule-idempotence-notest
Original file line number Diff line number Diff line change 78
78
- agent_dir_permission.group is defined
79
79
- agent_dir_permission.user | length != 0
80
80
- agent_dir_permission.group | length != 0
81
- ignore_errors : yes
82
81
changed_when : false
83
82
84
83
- name : Copy the environment variables shell script file to /etc/profile.d Directory
Original file line number Diff line number Diff line change 98
98
recurse : yes
99
99
owner : " {{ agent_dir_permission.user }}"
100
100
group : " {{ agent_dir_permission.group }}"
101
- ignore_errors : yes
102
101
changed_when : false
103
102
104
103
- name : " Make java agent log and conf dirs writable to {{ agent_dir_permission.user }} user and {{ agent_dir_permission.group }} group"
113
112
- " {{ java_agent_ver_folder }}/logs"
114
113
- " {{ java_agent_ver_folder }}/conf"
115
114
- " {{ java_agent_dest_folder_linux }}/conf"
116
- ignore_errors : yes
117
115
changed_when : false
118
116
119
117
- name : Clean up - remove {{ java_agent_dest_file }}
Original file line number Diff line number Diff line change 35
35
tempfile :
36
36
state : directory
37
37
suffix : build
38
- register : tempDir
38
+ register : temp_dir
39
39
changed_when : false
40
40
41
41
# Rather than modifying the XML files in-situ on the remote server, re copy
45
45
- name : Copy the log4j file down to update it localy
46
46
fetch :
47
47
src : ' {{ db_agent_dest_folder_linux }}/conf/logging/log4j.xml'
48
- dest : ' {{ tempDir .path }}/'
48
+ dest : ' {{ temp_dir .path }}/'
49
49
mode : 0755
50
50
flat : yes
51
51
changed_when : false
52
52
53
53
- name : Check which xpath entries are found
54
54
xml :
55
55
# path: '{{ db_agent_dest_folder_linux }}/conf/logging/log4j.xml'
56
- path : ' {{ tempDir .path }}/log4j.xml'
56
+ path : ' {{ temp_dir .path }}/log4j.xml'
57
57
xpath : //logger[@name='{{ item }}']/level
58
58
count : yes
59
59
register : hits
63
63
- name : Set the log DB level for all relevant loggers
64
64
xml :
65
65
# path: '{{ db_agent_dest_folder_linux }}/conf/logging/log4j.xml'
66
- path : ' {{ tempDir .path }}/log4j.xml'
66
+ path : ' {{ temp_dir .path }}/log4j.xml'
67
67
xpath : " {{ item.actions.xpath }}" # //logger[@name='{{ item }}']/level
68
68
attribute : value
69
69
value : " {{ agent_log_level }}"
78
78
- name : Copy the local file back to the host
79
79
become : true
80
80
copy :
81
- src : ' {{ tempDir .path }}/log4j.xml'
81
+ src : ' {{ temp_dir .path }}/log4j.xml'
82
82
dest : ' {{ db_agent_dest_folder_linux }}/conf/logging/log4j.xml'
83
83
changed_when : false
84
84
85
85
- name : Delete the temp directory
86
86
file :
87
- path : " {{ tempDir .path }}"
87
+ path : " {{ temp_dir .path }}"
88
88
state : absent
89
89
delegate_to : localhost
90
90
changed_when : false
Original file line number Diff line number Diff line change 33
33
tempfile :
34
34
state : directory
35
35
suffix : build
36
- register : tempDir
36
+ register : temp_dir
37
37
changed_when : false
38
38
39
39
# Rather than modifying the XML files in-situ on the remote server, we copy
43
43
- name : Copy the log4j file down to update it localy ( which we do as not to require the lxml python library on the target )
44
44
fetch :
45
45
src : ' {{ java_agent_ver_folder }}/conf/logging/log4j2.xml'
46
- dest : ' {{ tempDir .path }}/'
46
+ dest : ' {{ temp_dir .path }}/'
47
47
mode : 0755
48
48
flat : yes
49
49
changed_when : false
50
50
51
51
- name : Check which xpath entries are found in the log4j2 file
52
52
xml :
53
53
# path: '{{ java_agent_ver_folder }}/conf/logging/log4j2.xml'
54
- path : ' {{ tempDir .path }}/log4j2.xml'
54
+ path : ' {{ temp_dir .path }}/log4j2.xml'
55
55
xpath : //AsyncLogger[@name='{{ item }}']
56
56
count : yes
57
57
register : hits
61
61
- name : Set the log level for the java agent
62
62
xml :
63
63
# path: '{{ java_agent_ver_folder }}/conf/logging/log4j2.xml'
64
- path : ' {{ tempDir .path }}/log4j2.xml'
64
+ path : ' {{ temp_dir .path }}/log4j2.xml'
65
65
xpath : " {{ item.actions.xpath }}" # //AsyncLogger[@name='{{ item }}']
66
66
attribute : level
67
67
value : " {{ agent_log_level }}"
76
76
- name : Copy the local file back to the host
77
77
become : true
78
78
copy :
79
- src : ' {{ tempDir .path }}/log4j2.xml'
79
+ src : ' {{ temp_dir .path }}/log4j2.xml'
80
80
dest : ' {{ java_agent_ver_folder }}/conf/logging/'
81
81
changed_when : false
82
82
83
83
- name : Delete the temp directory
84
84
file :
85
- path : " {{ tempDir .path }}"
85
+ path : " {{ temp_dir .path }}"
86
86
state : absent
87
87
delegate_to : localhost
88
88
changed_when : false
Original file line number Diff line number Diff line change 19
19
tempfile :
20
20
state : directory
21
21
suffix : build
22
- register : tempDir
22
+ register : temp_dir
23
23
changed_when : false
24
24
25
25
- name : Copy the log4j file down to update it localy
26
26
fetch :
27
27
src : ' {{ machine_agent_dest_folder_linux }}/conf/logging/log4j.xml'
28
- dest : ' {{ tempDir .path }}/'
28
+ dest : ' {{ temp_dir .path }}/'
29
29
mode : 0755
30
30
flat : yes
31
31
changed_when : false
32
32
33
33
- name : Check which xpath entries are found in the log4j file
34
34
xml :
35
35
# path: '{{ machine_agent_dest_folder_linux }}/conf/logging/log4j.xml'
36
- path : ' {{ tempDir .path }}/log4j.xml'
36
+ path : ' {{ temp_dir .path }}/log4j.xml'
37
37
xpath : //Logger[@name='{{ item }}']
38
38
count : yes
39
39
register : hits
43
43
- name : Set the log level for the machine agent
44
44
xml :
45
45
# path: '{{ machine_agent_dest_folder_linux }}/conf/logging/log4j.xml'
46
- path : ' {{ tempDir .path }}/log4j.xml'
46
+ path : ' {{ temp_dir .path }}/log4j.xml'
47
47
xpath : " {{ item.actions.xpath }}" # //Logger[@name='{{ item }}']
48
48
attribute : level
49
49
value : " {{ agent_log_level }}"
58
58
- name : Copy the local file back to the host
59
59
become : true
60
60
copy :
61
- src : ' {{ tempDir .path }}/log4j.xml'
61
+ src : ' {{ temp_dir .path }}/log4j.xml'
62
62
dest : ' {{ machine_agent_dest_folder_linux }}/conf/logging/log4j.xml'
63
63
changed_when : false
64
64
65
65
- name : Delete the temp directory
66
66
file :
67
- path : " {{ tempDir .path }}"
67
+ path : " {{ temp_dir .path }}"
68
68
state : absent
69
69
delegate_to : localhost
70
70
changed_when : false
Original file line number Diff line number Diff line change 1
- # vars are propagated to dependencies (but defaults not)
2
- create_appdynamics_user : yes
You can’t perform that action at this time.
0 commit comments