diff options
author | Andrew Butcher <abutcher@redhat.com> | 2016-10-14 17:31:36 -0400 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2016-10-14 17:31:36 -0400 |
commit | 9570a621b2a04dfa6d67cf7c5a70c9e82f67e620 (patch) | |
tree | 48e7a9e19f957aa51181d1c990956825d974fd19 /roles/kube_nfs_volumes | |
parent | bef26dc9429b3c450c572850544d4e10e3e9ad2c (diff) | |
download | openshift-9570a621b2a04dfa6d67cf7c5a70c9e82f67e620.tar.gz openshift-9570a621b2a04dfa6d67cf7c5a70c9e82f67e620.tar.bz2 openshift-9570a621b2a04dfa6d67cf7c5a70c9e82f67e620.tar.xz openshift-9570a621b2a04dfa6d67cf7c5a70c9e82f67e620.zip |
Template with_items for upstream ansible-2.2 compat.
Diffstat (limited to 'roles/kube_nfs_volumes')
-rw-r--r-- | roles/kube_nfs_volumes/tasks/main.yml | 6 | ||||
-rw-r--r-- | roles/kube_nfs_volumes/tasks/nfs.yml | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/roles/kube_nfs_volumes/tasks/main.yml b/roles/kube_nfs_volumes/tasks/main.yml index 5432a5e2f..5eff30f6f 100644 --- a/roles/kube_nfs_volumes/tasks/main.yml +++ b/roles/kube_nfs_volumes/tasks/main.yml @@ -12,11 +12,11 @@ - name: create filesystem filesystem: fstype=ext4 dev=/dev/{{ item.name }} - with_items: partition_pool + with_items: "{{ partition_pool }}" - name: mount mount: name={{mount_dir}}/{{ item.name }} src=/dev/{{ item.name }} state=mounted fstype=ext4 passno=2 - with_items: partition_pool + with_items: "{{ partition_pool }}" - include: nfs.yml @@ -28,4 +28,4 @@ body_format: json status_code: 201 HEADER_Authorization: "Bearer {{ kubernetes_token }}" - with_items: partition_pool + with_items: "{{ partition_pool }}" diff --git a/roles/kube_nfs_volumes/tasks/nfs.yml b/roles/kube_nfs_volumes/tasks/nfs.yml index 9a68ceb8d..474ec69e5 100644 --- a/roles/kube_nfs_volumes/tasks/nfs.yml +++ b/roles/kube_nfs_volumes/tasks/nfs.yml @@ -13,5 +13,5 @@ lineinfile: dest=/etc/exports regexp="^{{ mount_dir }}/{{ item.name }} " line="{{ mount_dir }}/{{ item.name }} {{nfs_export_options}}" - with_items: partition_pool + with_items: "{{ partition_pool }}" notify: restart nfs |