]> arthur.barton.de Git - AnsibleRoles.git/blobdiff - roles/nodejs/tasks/main.yml
Update "apt" tasks to use lists
[AnsibleRoles.git] / roles / nodejs / tasks / main.yml
index b8e968d8e691fc63b74e0fd39f63f31193993a79..a417ec4f1a4328ec729b6fc1feaab12de1ce5861 100644 (file)
@@ -6,11 +6,11 @@
     - nodejs
     - packages
   apt:
-    name: "{{ item }}"
-    state: installed
-  with_items:
-    - apt-transport-https
-    - ca-certificates
+    name: [
+      'apt-transport-https',
+      'ca-certificates',
+    ]
+    state: present
   when: nodejs_apt_repository.startswith("https://")
 
 - name: install Node.js repository GnuPG key
@@ -50,4 +50,4 @@
     - packages
   apt:
     name: npm
-    state: installed
+    state: present