From 82bf954d00bcf4c875996db86a4963cf2026c8ac Mon Sep 17 00:00:00 2001 From: Yuya Kusakabe Date: Thu, 21 Jun 2018 22:52:06 +0900 Subject: Use copy module instead of template module if not template --- roles/hyperv/tasks/build_image.yml | 4 ++-- roles/qemu/tasks/build_image.yml | 4 ++-- roles/vagrant-libvirt/tasks/build_image.yml | 4 ++-- roles/vmware/tasks/build_image.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/roles/hyperv/tasks/build_image.yml b/roles/hyperv/tasks/build_image.yml index 7cfdadc..135d8de 100644 --- a/roles/hyperv/tasks/build_image.yml +++ b/roles/hyperv/tasks/build_image.yml @@ -80,7 +80,7 @@ state: touch - name: Copy the default config for QEMU to the installed image - template: + copy: src: files/config.boot dest: "{{ INSTALL_ROOT }}/opt/vyatta/etc/config/config.boot" mode: 0755 @@ -116,7 +116,7 @@ mode: 0644 - name: Create the persistence config - template: + copy: src: files/persistence.conf dest: "{{ WRITE_ROOT }}/persistence.conf" mode: 0644 diff --git a/roles/qemu/tasks/build_image.yml b/roles/qemu/tasks/build_image.yml index 7cfdadc..135d8de 100644 --- a/roles/qemu/tasks/build_image.yml +++ b/roles/qemu/tasks/build_image.yml @@ -80,7 +80,7 @@ state: touch - name: Copy the default config for QEMU to the installed image - template: + copy: src: files/config.boot dest: "{{ INSTALL_ROOT }}/opt/vyatta/etc/config/config.boot" mode: 0755 @@ -116,7 +116,7 @@ mode: 0644 - name: Create the persistence config - template: + copy: src: files/persistence.conf dest: "{{ WRITE_ROOT }}/persistence.conf" mode: 0644 diff --git a/roles/vagrant-libvirt/tasks/build_image.yml b/roles/vagrant-libvirt/tasks/build_image.yml index 7cfdadc..135d8de 100644 --- a/roles/vagrant-libvirt/tasks/build_image.yml +++ b/roles/vagrant-libvirt/tasks/build_image.yml @@ -80,7 +80,7 @@ state: touch - name: Copy the default config for QEMU to the installed image - template: + copy: src: files/config.boot dest: "{{ INSTALL_ROOT }}/opt/vyatta/etc/config/config.boot" mode: 0755 @@ -116,7 +116,7 @@ mode: 0644 - name: Create the persistence config - template: + copy: src: files/persistence.conf dest: "{{ WRITE_ROOT }}/persistence.conf" mode: 0644 diff --git a/roles/vmware/tasks/build_image.yml b/roles/vmware/tasks/build_image.yml index 7cfdadc..135d8de 100644 --- a/roles/vmware/tasks/build_image.yml +++ b/roles/vmware/tasks/build_image.yml @@ -80,7 +80,7 @@ state: touch - name: Copy the default config for QEMU to the installed image - template: + copy: src: files/config.boot dest: "{{ INSTALL_ROOT }}/opt/vyatta/etc/config/config.boot" mode: 0755 @@ -116,7 +116,7 @@ mode: 0644 - name: Create the persistence config - template: + copy: src: files/persistence.conf dest: "{{ WRITE_ROOT }}/persistence.conf" mode: 0644 -- cgit v1.2.3