---
- hosts: all
  tasks:
    - name: Host vars host_var for host host-group-vars from molecule.yml
      command: echo "{{ host_group_vars_host_molecule_yml }}"
      changed_when: false

    - name: Host vars from host_vars existing directory
      command: echo "{{ host_group_vars_host_vars_dir }}"
      changed_when: false

    - name: Group vars group_var for group example from molecule.yml
      command: echo "{{ host_group_vars_example_group_one_molecule_yml }} {{ host_group_vars_example_group_two_molecule_yml }}"
      changed_when: false

    - name: Group vars from group_vars existing directory
      command: echo "{{ host_group_vars_group_vars_dir }}"
      changed_when: false

    - name: Group vars group_var from child group example_1 from molecule.yml
      command: echo "{{ host_group_vars_example_1_child_group_molecule_yml }}"
      changed_when: false

- hosts: example
  tasks:
    - name: Dummy converge of example group
      command: /bin/true
      changed_when: false

- hosts: example_1
  tasks:
    - name: Dummy converge of child example_1 group
      command: /bin/true
      changed_when: false

---
- hosts: all
  tasks:
    - name: Host vars host_var for host host-group-vars from molecule.yml
      command: echo "{{ host_group_vars_host_molecule_yml }}"
      changed_when: false

    - name: Host vars from host_vars existing directory
      command: echo "{{ host_group_vars_host_vars_dir }}"
      changed_when: false

    - name: Group vars group_var for group example from molecule.yml
      command: |-
        echo "{{ host_group_vars_example_group_one_molecule_yml }} {{ host_group_vars_example_group_two_molecule_yml }}"
      changed_when: false

    - name: Group vars from group_vars existing directory
      command: echo "{{ host_group_vars_group_vars_dir }}"
      changed_when: false

    - name: Group vars group_var from child group example_1 from molecule.yml
      command: echo "{{ host_group_vars_example_1_child_group_molecule_yml }}"
      changed_when: false

- hosts: example
  tasks:
    - name: Dummy converge of example group
      command: /bin/true
      changed_when: false

- hosts: example_1
  tasks:
    - name: Dummy converge of child example_1 group
      command: /bin/true
      changed_when: false

Fix "Lines should be no longer than 120 chars"
Fix "Lines should be no longer than 120 chars"

Could be tested using:

    tox -e py27-ansible24-functional -- -k test_host_group_vars test/functional/docker/test_scenarios.py

or

    tox --recreate -e py27-ansible24-functional
    cd test/scenarios/host_group_vars/
    ../../../.tox/py27-ansible24-functional/bin/molecule --debug lint

Complete #1701

Signed-off-by: Pierre-Louis Bonicoli <7a7613ec9cdf8183c029137b52ab44c195e3ab05@libregerbil.fr>
