From c4dac84a3f597b5d3b44c5defdf781053df66be2 Mon Sep 17 00:00:00 2001 From: Jack Ivanov Date: Fri, 26 Apr 2019 13:03:10 +0200 Subject: [PATCH] Add missing roles to ansible-lint --- .travis.yml | 2 +- roles/cloud-azure/tasks/main.yml | 2 +- roles/cloud-ec2/files/{stack.yml => stack.yaml} | 0 roles/cloud-ec2/tasks/cloudformation.yml | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename roles/cloud-ec2/files/{stack.yml => stack.yaml} (100%) diff --git a/.travis.yml b/.travis.yml index 78e9a18e..e799b05b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -64,7 +64,7 @@ matrix: - pip install ansible-lint - shellcheck algo install.sh - ansible-playbook main.yml --syntax-check - - ansible-lint -v *.yml + - ansible-lint -v roles/*/*/*.yml playbooks/*.yml *.yml - stage: Deploy name: local deployment from docker diff --git a/roles/cloud-azure/tasks/main.yml b/roles/cloud-azure/tasks/main.yml index 2c448093..c5955d0d 100644 --- a/roles/cloud-azure/tasks/main.yml +++ b/roles/cloud-azure/tasks/main.yml @@ -16,7 +16,7 @@ azure_rm_deployment: state: present deployment_name: "{{ algo_server_name }}" - template: "{{ lookup('file', 'deployment.json') }}" + template: "{{ lookup('file', role_path + '/files/deployment.json') }}" secret: "{{ secret }}" tenant: "{{ tenant }}" client_id: "{{ client_id }}" diff --git a/roles/cloud-ec2/files/stack.yml b/roles/cloud-ec2/files/stack.yaml similarity index 100% rename from roles/cloud-ec2/files/stack.yml rename to roles/cloud-ec2/files/stack.yaml diff --git a/roles/cloud-ec2/tasks/cloudformation.yml b/roles/cloud-ec2/tasks/cloudformation.yml index 27977203..126c5318 100644 --- a/roles/cloud-ec2/tasks/cloudformation.yml +++ b/roles/cloud-ec2/tasks/cloudformation.yml @@ -6,7 +6,7 @@ stack_name: "{{ stack_name }}" state: "present" region: "{{ algo_region }}" - template: roles/cloud-ec2/files/stack.yml + template: roles/cloud-ec2/files/stack.yaml template_parameters: InstanceTypeParameter: "{{ cloud_providers.ec2.size }}" PublicSSHKeyParameter: "{{ lookup('file', SSH_keys.public) }}"