From 2efe45f9407ca2c4044d4f68d6c36db29e696d9e Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 14 Mar 2021 16:24:24 +0100 Subject: [PATCH] [skip ci] fix molecule instance config formatting --- molecule/centos7/create.yml | 2 +- molecule/centos7/destroy.yml | 2 +- molecule/centos8/create.yml | 2 +- molecule/centos8/destroy.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/molecule/centos7/create.yml b/molecule/centos7/create.yml index 54acd05..8b945cd 100644 --- a/molecule/centos7/create.yml +++ b/molecule/centos7/create.yml @@ -103,7 +103,7 @@ content: | # Molecule managed - {{ instance_conf | to_json | from_json | to_yaml }} + {{ instance_conf | to_nice_yaml(indent=2) }} dest: "{{ molecule_instance_config }}" when: server.changed | bool diff --git a/molecule/centos7/destroy.yml b/molecule/centos7/destroy.yml index 7a1ffbb..6454c71 100644 --- a/molecule/centos7/destroy.yml +++ b/molecule/centos7/destroy.yml @@ -73,6 +73,6 @@ content: | # Molecule managed - {{ instance_conf | to_json | from_json | to_yaml }} + {{ instance_conf | to_nice_yaml(indent=2) }} dest: "{{ molecule_instance_config }}" when: server.changed | bool diff --git a/molecule/centos8/create.yml b/molecule/centos8/create.yml index 54acd05..8b945cd 100644 --- a/molecule/centos8/create.yml +++ b/molecule/centos8/create.yml @@ -103,7 +103,7 @@ content: | # Molecule managed - {{ instance_conf | to_json | from_json | to_yaml }} + {{ instance_conf | to_nice_yaml(indent=2) }} dest: "{{ molecule_instance_config }}" when: server.changed | bool diff --git a/molecule/centos8/destroy.yml b/molecule/centos8/destroy.yml index 7a1ffbb..6454c71 100644 --- a/molecule/centos8/destroy.yml +++ b/molecule/centos8/destroy.yml @@ -73,6 +73,6 @@ content: | # Molecule managed - {{ instance_conf | to_json | from_json | to_yaml }} + {{ instance_conf | to_nice_yaml(indent=2) }} dest: "{{ molecule_instance_config }}" when: server.changed | bool