Skip to content

Commit

Permalink
Reflecting some changes from the molecule role init command and als…
Browse files Browse the repository at this point in the history
…o defaulting to Ansible 2.9
  • Loading branch information
jonashackt committed Aug 31, 2020
1 parent 4ff8b2a commit 81fcec4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
26 changes: 23 additions & 3 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---
# Based on ansible-lint config
extends: default

rules:
Expand All @@ -7,7 +9,25 @@ rules:
brackets:
max-spaces-inside: 1
level: error
colons:
max-spaces-after: -1
level: error
commas:
max-spaces-after: -1
level: error
comments: disable
comments-indentation: disable
document-start: disable
empty-lines:
max: 3
level: error
hyphens:
level: error
indentation: disable
key-duplicates: enable
line-length: disable
# NOTE(retr0h): Templates no longer fail this lint rule.
# Uncomment if running old Molecule templates.
# truthy: disable
new-line-at-end-of-file: disable
new-lines:
type: unix
trailing-spaces: disable
truthy: disable
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pipenv install ansible molecule

To initialize a new Molecule powered Ansible role named `docker` with the Vagrant driver and the Testinfra verifier you have to execute the following command:

`molecule init role --driver-name vagrant --role-name docker --verifier-name testinfra`
`molecule init role --driver-name vagrant --verifier-name testinfra docker`

This will give:

Expand Down
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ galaxy_info:
company: jonashackt.io
license: license (MIT)

min_ansible_version: 2.8
min_ansible_version: 2.9

# https://galaxy.ansible.com/api/v1/platforms/
platforms:
Expand Down

0 comments on commit 81fcec4

Please sign in to comment.