Code Monkey home page Code Monkey logo

ansible-docker's Introduction

andrewrothstein.docker

Build Status

A role that installs and launches an optionally TLS secured Docker daemon. Only listens remotely if secured with TLS.

Requirements

See meta/main.yml

Role Variables

See defaults/main.yml

Dependencies

See meta/main.yml

Example Playbook

- hosts: servers
  roles:
    - role: andrewrothstein.docker
	  docker_insecure_registries :
	    - localhost:5000

License

MIT

Author Information

Andrew Rothstein [email protected]

ansible-docker's People

Contributors

andrewrothstein avatar arothste-blk avatar chenry3 avatar fouadsemaan avatar lloydgriffiths avatar spk83 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ansible-docker's Issues

Docker service needs to be restarted in order for storage type be available

Hi,

I'm using your role (v 5.0.1) in a ubuntu 16.04 (default vagrant box), following config:

docker_storage_driver: overlay2
docker_remote: False
docker_tls: False

After applying the role, the docker service is still using 'Storage driver: devicemapper' . I have to manually restart the service to get it on overlay2. So the configuration file was modified, but the service doesn't appear to be restarted to pick that change.

The full failing example:
https://github.com/cintiadr/test-docker-ansible-role

Role prevents execution with tag filter

Given an Ansible playbook with multiple roles:

[...]
- hosts:
    - backend
  roles:
    - role: backend
      tags: backend
    - role: andrewrothstein.docker
      tags: docker
      docker_tls: False
[...]

If I execute the whole playbook for certain hosts, execution is successful. If I execute the same playbook with a --tag or -t filter, then this message appears:

TASK [andrewrothstein.docker : configuring package management system]
****************************************************************************
fatal: [be-01.XXXXXXXX]: FAILED! => {"msg": "'docker_installer' is undefined"}
        to retry, use: --limit @/.../ansible/playbook.retry

PLAY RECAP *****************************************************************
be-01.XXXXXXXX : ok=7    changed=0    unreachable=0    failed=1

Filtering with the docker tag (which in my example the role is indeed assigned to) leads to no error.

Expected state would be that the filtering out does not lead to this error.

Error when using this role with Ansible

ERROR: package is not a legal parameter in an Ansible task or handler
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

I'm using Vagrant box geerlingguy/centos7. Role was working about a week ago.

Moving to docker-ce package

Package name, GPG key and repository urls are updated since docker-ce got introduced. Looks like they have stopped pushing new updates to docker package under docker-engine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.