Comments (4)
I'm not very familiar with Gentoo but it sounds like whatever other management tool you're using relies on or can use the /etc/logrotate configuration, is that correct? What would be the typical setup steps then? Sorry for the delayed reply, this didn't make it to my inbox for some reason.
from ansible-logrotate.
This one fails:
- name: nickhammond.logrotate | Install logrotate
action: "{{ansible_pkg_mgr}} pkg=logrotate state=present"
In Gentoo ansible_pkg_mgr
resolves to portage
: http://docs.ansible.com/portage_module.html
Error: msg: unsupported parameter for module: pkg
I think we could change task to this:
- name: nickhammond.logrotate | Install logrotate
action: "{{ansible_pkg_mgr}} pkg=logrotate state=present"
when: logrotate_install_package
With default value of logrotate_install_package
set to true
. This way it would be backwards-compatible and usable by people whose package management module does not work like apt.
What do you think?
from ansible-logrotate.
That makes sense to me, let me know if you still want to submit a PR or I can work on it too.
from ansible-logrotate.
I had a need for this flag so I made PR #43.
from ansible-logrotate.
Related Issues (20)
- nginx example has a fatal bug HOT 1
- Use GitHub releases for versioning HOT 3
- Adding multiple paths? HOT 4
- SELinux HOT 1
- Role does not provide a way to avoid duplicate entries HOT 1
- missing tag v0.0.4 for the latest commit HOT 1
- Way to move vars out of main playbook definition file? HOT 1
- 'ansible.vars.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'name' HOT 3
- scripts, postrotate, multiple entries HOT 1
- Is this module abandonware? HOT 1
- Multiple Paths HOT 2
- Postrotate not working
- Logrotate broken with Python3
- Needs become to run
- Needs become to run HOT 1
- Manually deleted config files not recreated
- *logrotate_keep* cannot be -1 even it is a valid value HOT 1
- logrotate_scripts from different groups conflict HOT 5
- Documentation lacking an actual playbook example HOT 3
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-logrotate.