Comments (6)
Hi,
If you don't want to receive the email you can just override the default without modifying this role.
Just supply this in your inventory variables for the servers:
docker_cron_tasks:
- job: docker system prune -f &>/dev/null
name: "Docker clean up"
schedule: ["0", "0", "*", "*", "0"]
That will override this role's default and you're good to go.
from ansible-docker.
You're right with that approach but I thought others may have the same "issue" and are interested in a built in solution.
from ansible-docker.
I'll think about it, and leave this open for a bit to see if anyone else has any feedback.
If you wanted to suppress all cron messages, to me that, that's something that should be done at the system level by configuring cron itself, not at the individual cron job level.
from ansible-docker.
Another thing to think about would be only redirecting STDOUT to /dev/null, this way if there's a problem, it gets mailed to you. What do you think about that?
from ansible-docker.
I prefer to avoid generating messages with low level informations (command output control) then filtering them after their creation (mail filter). Running this at scale would force the role user to implement a additional filter in another place/role when he decides to pick this Docker role. So he can't just use it, he'll have to spend additional effort in his environment as the role does not give him the choice what to receive.
Forwarding would be a better approach, yes. We only can hope that Docker puts his messages into the right channels then :).
from ansible-docker.
Ok, I'll remove all of it. It'll be in the next release.
from ansible-docker.
Related Issues (20)
- Support for docker.io package (in addition to ce and ee) HOT 4
- Failed : Install Docker's dependencies HOT 9
- Package dependency error for Docker installation on clean Ubuntu 18.04 HOT 11
- Ubuntu 20.04 ImportError: No module named pkg_resources HOT 10
- Avoid docker login issue with X11 HOT 11
- Expected behavior for DockerHub private repositories login options? HOT 19
- Failed to import the required Python library HOT 10
- Update apt cache before installing packages HOT 1
- Add way to add additional packages to install HOT 3
- Versioning pinning not working HOT 5
- Install Python packages: Could not get output from /usr/local/bin/virtualenv --help HOT 16
- Hi; Please consider suppressing credentials output in: Manage Docker registry login credentials HOT 8
- Upgrade edge case HOT 9
- I'm thinking about no longer setting up a virtualenv, pip installing docker / docker compose and switching the docker_login module to a shell script HOT 2
- docker not installed into /usr/local/bin HOT 4
- Unable to find pip in the virtualenv HOT 8
- Error in new v2.2.0 version when using ansible 2.9.14 HOT 3
- Docker Compose V1 causes the Install Python packages step to crash HOT 3
- Error with pip on basic usage HOT 2
- Setting ansible_python_interpreter to "/usr/bin/env python3-docker" causes not found error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-docker.