Fix ansible-lint E404 (#6417)

This commit is contained in:
Maxime Guyot
2020-07-28 10:21:08 +02:00
committed by GitHub
parent b8c4bd200e
commit 8bd3b50e31
6 changed files with 14 additions and 14 deletions

View File

@@ -18,7 +18,7 @@
instance_tags: "{{ aws.tags }}"
register: ec2
- name: Template the inventory # noqa 404
- name: Template the inventory
template:
src: ../templates/inventory-aws.j2
src: ../templates/inventory-aws.j2 # noqa 404 CI inventory templates are not in role_path
dest: "{{ inventory_path }}"

View File

@@ -86,8 +86,8 @@
msg: "{{ droplets }}, {{ inventory_path }}"
when: state == 'present'
- name: Template the inventory # noqa 404
- name: Template the inventory
template:
src: ../templates/inventory-do.j2
src: ../templates/inventory-do.j2 # noqa 404 CI templates are not in role_path
dest: "{{ inventory_path }}"
when: state == 'present'

View File

@@ -49,7 +49,7 @@
add_host: hostname={{ item.public_ip }} groupname="waitfor_hosts"
with_items: '{{ gce.instance_data }}'
- name: Template the inventory # noqa 404
- name: Template the inventory # noqa 404 CI inventory templates are not in role_path
template:
src: ../templates/inventory-gce.j2
dest: "{{ inventory_path }}"
@@ -60,7 +60,7 @@
state: directory
when: mode in ['scale', 'separate-scale', 'ha-scale']
- name: Template fake hosts group vars # noqa 404
- name: Template fake hosts group vars # noqa 404 CI templates are not in role_path
template:
src: ../templates/fake_hosts.yml.j2
dest: "{{ inventory_path|dirname }}/group_vars/fake_hosts.yml"