Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible lint #50

Merged
merged 2 commits into from
Apr 3, 2017
Merged

Ansible lint #50

merged 2 commits into from
Apr 3, 2017

Conversation

eplanet
Copy link
Contributor

@eplanet eplanet commented Mar 11, 2017

This is a proposition to activate a kind of Ansible check-style enforcement using ansible-lint. It currently only ignores [EANSIBLE0010] Package installs should not use latest since I'm not sure how you'd like to fix it.

Please share your thoughts.

Copy link
Member

@olivielpeau olivielpeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @eplanet! This is a very welcome change.
Disabling rule EANSIBLE0010 is a good call, we can re-enable it once #57 is addressed.

I've enabled Travis on this repo, so your next push should trigger a travis build.

.travis.yml Outdated
python: "2.7"

before_install:
- sudo apt-get update -qq
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this step? If it's not useful let's remove it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed! I added it because at first I thought ansible-lint would need ansible installed, but since it's not the case, let's delete it.

eplanet added 2 commits April 1, 2017 18:33
This ensures a minimum checkstyle is done on each push.
ANSIBLE0010 is deliberately excluded since it can be argued
that ensure=latest is actually the wanted behavior.
@eplanet
Copy link
Contributor Author

eplanet commented Apr 1, 2017

Thanks for the comments and for the good welcome of the PR :-P. I cleaned the .travis.yml as discussed.

Copy link
Member

@olivielpeau olivielpeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌 Thanks @eplanet!

@olivielpeau olivielpeau added this to the 1.3.0 milestone Apr 3, 2017
@olivielpeau olivielpeau merged commit d18503a into DataDog:master Apr 3, 2017
@eplanet eplanet deleted the ansible_lint branch April 4, 2017 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants