Skip to content

Commit

Permalink
fix ansible lint: template-instead-of-copy: Templated files should us…
Browse files Browse the repository at this point in the history
…e template instead of copy
  • Loading branch information
dangel101 committed Sep 29, 2022
1 parent 0575c14 commit 1079e9a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
state: present

- name: Store iptables
ansible.builtin.copy:
ansible.builtin.copy: # noqa template-instead-of-copy
content: "{{ host_deploy_iptables_rules }}"
dest: "{{ redhat_iptables }}"
owner: 'root'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
register: csr

- name: Copy OVN CSR
ansible.builtin.copy:
ansible.builtin.copy: # noqa template-instead-of-copy
content: "{{ csr.stdout }}"
dest: "{{ ovirt_pki_dir }}/requests/{{ ovirt_vds_hostname }}-ovn.req"
mode: 0644
Expand All @@ -45,7 +45,7 @@
mode: 0755

- name: Add OVN cacert file
ansible.builtin.copy:
ansible.builtin.copy: # noqa template-instead-of-copy
content: "{{ ovirt_ca_cert }}"
dest: "{{ ovirt_vdsm_trust_store }}/{{ ovirt_ovn_ca_file }}"
owner: 'openvswitch'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
group: root

- name: Put cipher string to SPICE config file
ansible.builtin.copy:
ansible.builtin.copy: # noqa template-instead-of-copy
dest: '/etc/pki/tls/spice.cnf'
backup: true
mode: 0644
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
register: csrs

- name: Copy vdsm and QEMU CSRs
ansible.builtin.copy:
ansible.builtin.copy: # noqa template-instead-of-copy
content: "{{ item.stdout }}"
dest: "{{ ovirt_pki_dir }}/{{ item.item.item.req_dir }}/{{ ovirt_vds_hostname }}.req"
mode: 0644
Expand Down Expand Up @@ -77,7 +77,7 @@
loop_var: filedest

- name: Add vdsm cacert files
ansible.builtin.copy:
ansible.builtin.copy: # noqa template-instead-of-copy
content: "{{ ovirt_ca_cert }}"
dest: "{{ filedest }}"
owner: 'root'
Expand All @@ -91,7 +91,7 @@
loop_var: filedest

- name: Add QEMU cacert file
ansible.builtin.copy:
ansible.builtin.copy: # noqa template-instead-of-copy
content: "{{ ovirt_qemu_ca_cert }}"
dest: "{{ ovirt_vdsm_trust_store }}/{{ ovirt_qemu_ca_file }}"
owner: 'root'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
when: not vdsm_id

- name: Store vdsm id
ansible.builtin.copy:
ansible.builtin.copy: # noqa template-instead-of-copy
content: "{{ vdsm_id }}"
dest: "{{ vdsm_id_file }}"
owner: root
Expand Down Expand Up @@ -93,7 +93,7 @@
vdsm_config_prefix: "{{ vdsm_config_prefix }} \n[addresses]\nmanagement_port= {{ host_deploy_vdsm_port }} \n"

- name: Copy vdsm config prefix to vdsm.conf
ansible.builtin.copy:
ansible.builtin.copy: # noqa template-instead-of-copy
content: "{{ vdsm_config_prefix }}"
dest: "{{ vdsm_config_file }}"
owner: root
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
register: csr

- name: Copy vmconsole CSR
ansible.builtin.copy:
ansible.builtin.copy: # noqa template-instead-of-copy
content: "{{ csr.stdout }}"
dest: "{{ ovirt_pki_dir }}/requests/{{ ovirt_vds_hostname }}-ssh.req"
mode: 0644
Expand All @@ -51,7 +51,7 @@
delegate_to: localhost

- name: Add vmconsole cacert files
ansible.builtin.copy:
ansible.builtin.copy: # noqa template-instead-of-copy
content: "{{ ovirt_ca_key }}"
dest: "{{ ovirt_vmconsole_ca_file }}"
mode: 0644
Expand Down

0 comments on commit 1079e9a

Please sign in to comment.