Skip to content

Commit

Permalink
test(molecule): fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rockandska committed Aug 10, 2021
1 parent 4b30368 commit 246c7c7
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 24 deletions.
21 changes: 11 additions & 10 deletions meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
---
galaxy_info:
role_name: rabbitmq
author: rockandska
description: RabbitMQ (HA compatible)
company: none
license: BSD
min_ansible_version: 2.5
min_ansible_version: 2.8
platforms:
- name: Ubuntu
versions:
- bionic
- name: Debian
versions:
- stretch
- name: EL
versions:
- 7
- name: Ubuntu
versions:
- bionic
- name: Debian
versions:
- stretch
- name: EL
versions:
- 7
galaxy_tags:
- erlang
- rabbitmq
Expand Down
4 changes: 2 additions & 2 deletions molecule/alternate/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
roles:
- role: ansible-role-erlang
vars:
erlang_series: "{{ lookup('ENV','ERLANG_SERIES') }}"
erlang_series: "{{ lookup('env','ERLANG_SERIES') }}"
- role: ansible-role-rabbitmq
vars:
rabbitmq_series: "{{ lookup('ENV','RABBITMQ_SERIES') }}"
rabbitmq_series: "{{ lookup('env','RABBITMQ_SERIES') }}"
vars:
rabbitmq_sysctl_config:
listeners:
Expand Down
8 changes: 4 additions & 4 deletions molecule/cluster/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
roles:
- role: ansible-role-erlang
vars:
erlang_series: "{{ lookup('ENV','ERLANG_SERIES') }}"
erlang_series: "{{ lookup('env','ERLANG_SERIES') }}"
- role: ansible-role-rabbitmq
vars:
rabbitmq_series: "{{ lookup('ENV','RABBITMQ_SERIES') }}"
rabbitmq_series: "{{ lookup('env','RABBITMQ_SERIES') }}"

- hosts: rabbitmq-slave
remote_user: molecule
Expand All @@ -22,7 +22,7 @@
roles:
- role: ansible-role-erlang
vars:
erlang_series: "{{ lookup('ENV','ERLANG_SERIES') }}"
erlang_series: "{{ lookup('env','ERLANG_SERIES') }}"
- role: ansible-role-rabbitmq
vars:
rabbitmq_series: "{{ lookup('ENV','RABBITMQ_SERIES') }}"
rabbitmq_series: "{{ lookup('env','RABBITMQ_SERIES') }}"
4 changes: 2 additions & 2 deletions molecule/default/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
roles:
- role: ansible-role-erlang
vars:
erlang_series: "{{ lookup('ENV','ERLANG_SERIES') }}"
erlang_series: "{{ lookup('env','ERLANG_SERIES') }}"
- role: ansible-role-rabbitmq
vars:
rabbitmq_series: "{{ lookup('ENV','RABBITMQ_SERIES') }}"
rabbitmq_series: "{{ lookup('env','RABBITMQ_SERIES') }}"
12 changes: 6 additions & 6 deletions molecule/resources/pre_tasks.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
- name: "Display 'RABBITMQ_SERIES' env var"
debug:
var: lookup('ENV','RABBITMQ_SERIES')
var: lookup('env','RABBITMQ_SERIES')
failed_when:
- lookup('ENV','RABBITMQ_SERIES') is not defined
or (lookup('ENV','RABBITMQ_SERIES') | string | length == 0)
- lookup('env','RABBITMQ_SERIES') is not defined
or (lookup('env','RABBITMQ_SERIES') | string | length == 0)

- name: "Display 'ERLANG_SERIES' env var"
debug:
var: lookup('ENV','ERLANG_SERIES')
var: lookup('env','ERLANG_SERIES')
failed_when:
- lookup('ENV','ERLANG_SERIES') is not defined
or (lookup('ENV','ERLANG_SERIES') | string | length == 0)
- lookup('env','ERLANG_SERIES') is not defined
or (lookup('env','ERLANG_SERIES') | string | length == 0)

0 comments on commit 246c7c7

Please sign in to comment.