Comments (9)
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the component bot command.
from ansible.
from ansible.
hmmm not sure.
This is about default values for keys within dicts. Take a look at the sample config above. Looking at the issues you cited they seem to have different data structures ...
from ansible.
default
is just for documentation and the existing type validators only guarantee that it can be converted to the type, not that it is actually that type.
... because of complexities with variable precedence. At the moment, we could return the validated and coerced variables in an ansible_facts key from the validate_argument_spec action plugin, but this would break the assumptions of variable precedence. At this time we do not have plans on implementing a feature that would allow re-injecting the validated and coerced variables.
from ansible.
from ansible.
:-( ok
from ansible.
What seems odd, is that when you are setting required: true
and default: xxx
then ansible will complain, that a default value and required would not go together. If default is for documentation only, then this error makes little sense.
from ansible.
closing as per above
from ansible.
the error is correct, the documentation should not specify a default if the argument is required, it is not only code consistency we check for.
from ansible.
Related Issues (20)
- Ansible fails to override modules with the same name in different roles HOT 4
- Anisble fails for retires which is more than a minutes for windows server HOT 3
- ansible.builtin.systemd_service throws false warning about mount unit being an init script and triggers changed even when unit is already enabled HOT 3
- yaml tags for controlling variable merge behavior HOT 5
- Ansible does not respect ansible_connection: local in inventory file HOT 3
- request for additional 8.X version HOT 1
- local_action does not delegate to controller when remote is localhost HOT 5
- using "export ANSIBLE_INVENTORY" breaks command escalation HOT 5
- win_dns_client should support DNS suffix HOT 2
- Not quite correct output of ipsubnet HOT 3
- Unexpected behavior with handlers in loops HOT 2
- vmware_host ssl thumbprint HOT 1
- local documentation builds stopped working with F40 and antsibull-core HOT 7
- unable to set terminal parameters HOT 1
- Append list element works different between core 2.11.12 and 2.14.14 HOT 5
- Allow unarchive command to skip listing archive content / Allow user to provide tool as a parameter HOT 5
- Specify that .ini files in inventories defined as directories do not work by default HOT 1
- Add setting to fail on missing/empty role HOT 4
- Pass handlers into imported playbooks HOT 4
- Chinese Language Display Issue 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.