File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed
roles/deluge/tasks/subtasks Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 19
19
regexp : ' "listen_random_port": ([\d|\W]+),'
20
20
replace : ' "listen_random_port": null,'
21
21
22
- - name : Post-Install | Settings | Update 'core.conf' | Disable random ports
22
+ - name : Post-Install | Settings | Update 'core.conf' | Disable random incoming port
23
23
ansible.builtin.replace :
24
24
path : " {{ deluge_paths_conf }}"
25
25
regexp : ' "random_port": ([\w]+),'
26
26
replace : ' "random_port": false,'
27
+
28
+ - name : Post-Install | Settings | Update 'core.conf' | Enable random outgoing ports
29
+ ansible.builtin.replace :
30
+ path : " {{ deluge_paths_conf }}"
31
+ regexp : ' "random_outgoing_ports": ([\w]+),'
32
+ replace : ' "random_outgoing_ports": true,'
33
+
34
+ - name : New Install
35
+ when : not deluge_paths_conf_stat.stat.exists
36
+ block :
37
+ - name : Post-Install | Settings | Update 'core.conf' | Disable Network Extras
38
+ ansible.builtin.replace :
39
+ path : " {{ deluge_paths_conf }}"
40
+ regexp : ' "{{ item }}": ([\w]+){{ "," if item != "utpex" else "" }}'
41
+ replace : ' "{{ item }}": false{{ "," if item != "utpex" else "" }}'
42
+ loop :
43
+ - " dht"
44
+ - " lsd"
45
+ - " natpmp"
46
+ - " upnp"
47
+ - " utpex"
Original file line number Diff line number Diff line change 14
14
protocol : both
15
15
register : port_lookup_58112
16
16
ignore_errors : true
17
+
18
+ - name : Pre-Install | Check if existing config file exists
19
+ ansible.builtin.stat :
20
+ path : " {{ deluge_paths_conf }}"
21
+ register : deluge_paths_conf_stat
You can’t perform that action at this time.
0 commit comments