Closed paulfantom closed 6 years ago
@mongrelion please check travis output.
I can start work towards integrating some solutions from https://github.com/SoInteractive/ansible-docker to make ansible-lint happy and remove installation script.
I'm happy to ditch the installation script and replace that with ansible tasks in exchange for a solid test suite.
Keep up the good work!
Some questions:
1) Can I replace service
module with newer systemd
module?
2) This (https://github.com/mongrelion/ansible-role-docker/blob/master/tasks/main.yml#L76) is not used anywhere, remove?
3) This is very static usage of consul: https://github.com/mongrelion/ansible-role-docker/blob/master/tasks/main.yml#L29 probably should be removed or made more dynamic, what do you think?
I think there is a need for a major rework to unify variable naming (variables with role name prefix are easier to read in playbooks) and move from installation script to ansible task. Also I can create some variable mappings for backward compatibility. But before I start I need to know your point of view on this matter.
Regarding the unification of variable naming, I agree but I'm afraid it may fall a little out of the scope of this PR so let's keep it nice and tidy and then we can work on the next big thing. This rework is looking promising.
Thanks again for looking into this!
Ready to be merged.
Currently it is testing on:
Distros with SELinux aren't tested since installation script uses setsebool
command which fails in docker containers due to SELinux beeing in disabled state.
Debian Stretch fails because something fails in the installtion script.
I am also creating issues so work can be started on other things I discovered during writing this PR
Awesome work, man. Thanks for this.
Resolves #13
I've started work towards providing integration tests, currently it works on:
And doesn't work on:
Problems aren't directly related to integration test suite, but to solutions used in this role (like running installation script instead of porting script to ansible tasks).
I'm currently commenting out not working environments.