src.nth.io/

summaryrefslogtreecommitdiff
path: root/transmission
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-05-16 12:50:02 -0500
committerLuke Hoersten <[email protected]>2020-05-16 12:50:02 -0500
commitbacf60475141dd923c1eca7d2c2c4b93ad376d9a (patch)
tree4c5c5535766bcc96d5f49f4ef7030b49d2dbd40f /transmission
parent4bccd9192097e7c61591b2e26ee5263122c9f2f2 (diff)
Made transmission idempotent.
Diffstat (limited to 'transmission')
-rw-r--r--transmission/tasks/main.yaml5
1 files changed, 4 insertions, 1 deletions
diff --git a/transmission/tasks/main.yaml b/transmission/tasks/main.yaml
index ce60fa1..16b9ac1 100644
--- a/transmission/tasks/main.yaml
+++ b/transmission/tasks/main.yaml
@@ -8,6 +8,7 @@
- name: stop transmission service
systemd: name="transmission-daemon" state="stopped" daemon_reload="yes"
become: yes
+ changed_when: false
- name: config ip whitelist
become: yes
@@ -33,13 +34,14 @@
line: " \"rpc-port\": {{transmission_port}},"
notify: restart transmission service
+# the password is hashed at start of server so this always changes
- name: config password
become: yes
lineinfile:
path: "{{transmission_config}}"
regexp: '^ "rpc-password":'
line: " \"rpc-password\": \"{{transmission_passwd}}\","
- notify: restart transmission service
+ changed_when: false
- name: config download dir
become: yes
@@ -68,3 +70,4 @@
- name: start transmission service
systemd: name="transmission-daemon" state="started" daemon_reload="yes"
become: yes
+ changed_when: false