Replaced with_items with loop.
authorLuke Hoersten <luke@hoersten.org>
Mon, 16 Nov 2020 16:43:09 -0600
changeset 144 267d58c0e186
parent 143 7d4a477be685
child 145 7d94a7cab2f6
Replaced with_items with loop.
apt-cacher/server/tasks/main.yaml
aws-s3-backup/tasks/main.yaml
homebridge/tasks/main.yaml
nodejs/tasks/main.yaml
--- a/apt-cacher/server/tasks/main.yaml	Mon Nov 16 16:42:59 2020 -0600
+++ b/apt-cacher/server/tasks/main.yaml	Mon Nov 16 16:43:09 2020 -0600
@@ -11,7 +11,7 @@
     regexp: "^{{item.key}}:"
     insertafter: "^# {{item.key}}:"
     line: "{{item.key}}: {{item.val}}"
-  with_items:
+  loop:
     - { key: "CacheDir", val: "{{apt_cacher_cache_dir}}" }
     - { key: "LogDir", val: "{{apt_cacher_log_dir}}" }
     - { key: "Port", val: "{{apt_cacher_port}}" }
--- a/aws-s3-backup/tasks/main.yaml	Mon Nov 16 16:42:59 2020 -0600
+++ b/aws-s3-backup/tasks/main.yaml	Mon Nov 16 16:43:09 2020 -0600
@@ -15,7 +15,7 @@
 - name: configure aws credentials for root
   become: yes
   template: src="aws-{{item}}.j2" dest="/root/.aws/{{item}}" mode="0600"
-  with_items:
+  loop:
     - "credentials"
     - "config"
 
--- a/homebridge/tasks/main.yaml	Mon Nov 16 16:42:59 2020 -0600
+++ b/homebridge/tasks/main.yaml	Mon Nov 16 16:43:09 2020 -0600
@@ -32,7 +32,7 @@
 - name: install platform accessories
   become: yes
   npm: name="{{item}}" global="yes"
-  with_items: "{{homebridge_npm_packages}}"
+  loop: "{{homebridge_npm_packages}}"
   notify: restart homebridge service
 
 - name: configure homebridge
--- a/nodejs/tasks/main.yaml	Mon Nov 16 16:42:59 2020 -0600
+++ b/nodejs/tasks/main.yaml	Mon Nov 16 16:43:09 2020 -0600
@@ -18,6 +18,6 @@
     name: "{{item}}"
     path: "/opt/{{nodejs_dir}}/bin/{{item}}"
     priority: "1"
-  with_items:
+  loop:
     - "node"
     - "npm"