diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index e3d6e33..0339702 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -5,6 +5,8 @@ driver: name: docker lint: name: yamllint + options: + config-file: molecule/default/yaml-lint.yml platforms: - name: instance image: geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible diff --git a/molecule/default/yaml-lint.yml b/molecule/default/yaml-lint.yml new file mode 100644 index 0000000..a3dbc38 --- /dev/null +++ b/molecule/default/yaml-lint.yml @@ -0,0 +1,6 @@ +--- +extends: default +rules: + line-length: + max: 120 + level: warning diff --git a/tasks/configure-Debian.yml b/tasks/configure-Debian.yml index 85c1daa..2f2b298 100644 --- a/tasks/configure-Debian.yml +++ b/tasks/configure-Debian.yml @@ -48,8 +48,7 @@ - name: Remove default vhost in sites-enabled. file: - path: >- - "{{ apache_conf_path }}/sites-enabled/{{ apache_default_vhost_filename }}" + path: "{{ apache_conf_path }}/sites-enabled/{{ apache_default_vhost_filename }}" state: absent notify: restart apache when: apache_remove_default_vhost