fix: fix formatting

This commit is contained in:
Robert Kaussow 2021-05-29 16:44:07 +02:00
parent bad027d2d2
commit cfd0598068
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
5 changed files with 13 additions and 11 deletions

View File

@ -1,4 +1,6 @@
--- ---
collections: collections:
- name: https://gitea.rknet.org/ansible/xoxys.general/releases/download/v1.2.0/xoxys-general-1.2.0.tar.gz - name: https://gitea.rknet.org/ansible/xoxys.general/releases/download/v2.1.1/xoxys-general-2.1.1.tar.gz
- name: community.general - name: community.general
roles: []

View File

@ -1,4 +1,4 @@
{% raw %} {%- raw -%}
--- ---
- name: Create - name: Create
hosts: localhost hosts: localhost
@ -104,7 +104,7 @@
content: | content: |
# Molecule managed # Molecule managed
{{ instance_conf | to_json | from_json | to_yaml }} {{ instance_conf | to_nice_yaml(indent=2) }}
dest: "{{ molecule_instance_config }}" dest: "{{ molecule_instance_config }}"
when: server.changed | bool when: server.changed | bool
@ -119,4 +119,4 @@
- name: Wait for VM to settle down - name: Wait for VM to settle down
pause: pause:
seconds: 30 seconds: 30
{% endraw %} {%- endraw -%}

View File

@ -1,4 +1,4 @@
{% raw %} {%- raw -%}
--- ---
- name: Destroy - name: Destroy
hosts: localhost hosts: localhost
@ -74,7 +74,7 @@
content: | content: |
# Molecule managed # Molecule managed
{{ instance_conf | to_json | from_json | to_yaml }} {{ instance_conf | to_nice_yaml(indent=2) }}
dest: "{{ molecule_instance_config }}" dest: "{{ molecule_instance_config }}"
when: server.changed | bool when: server.changed | bool
{% endraw %} {%- endraw -%}

View File

@ -3,6 +3,7 @@ dependency:
name: galaxy name: galaxy
options: options:
role-file: molecule/requirements.yml role-file: molecule/requirements.yml
requirements-file: molecule/requirements.yml
env: env:
ANSIBLE_GALAXY_DISPLAY_PROGRESS: "false" ANSIBLE_GALAXY_DISPLAY_PROGRESS: "false"
driver: driver:
@ -18,5 +19,6 @@ provisioner:
env: env:
ANSIBLE_FILTER_PLUGINS: ${ANSIBLE_FILTER_PLUGINS:-./plugins/filter} ANSIBLE_FILTER_PLUGINS: ${ANSIBLE_FILTER_PLUGINS:-./plugins/filter}
ANSIBLE_LIBRARY: ${ANSIBLE_LIBRARY:-./library} ANSIBLE_LIBRARY: ${ANSIBLE_LIBRARY:-./library}
log: False
verifier: verifier:
name: testinfra name: testinfra

View File

@ -1,11 +1,9 @@
import os import os
import warnings
import testinfra.utils.ansible_runner import testinfra.utils.ansible_runner
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning) warnings.filterwarnings("ignore", category=DeprecationWarning)
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') os.environ["MOLECULE_INVENTORY_FILE"]).get_hosts("all")