interface.port should be a string to be able to use macros in that value. This fixes the case when interface.port is a macro (eg.: "{$MACRO}" and force=false. Because, until now, setting the interface.port to an integer was the correct way to work with force=false, a type validation has been added to that parameter. Previously, if a string was used for interface.port, it was converted to an integer, the comparison didn't work (if interface not in interfaces) and the module tried to register the same interface twice, returning an error. Zabbix API manual specifies that only 'main, 'type', 'useip' and 'bulk' are integers. https://www.zabbix.com/documentation/current/manual/api/reference/hostinterface/object Tests are changed to use always str in the interface.port. Two new tests are added. The first one is to show that now registering a host with force=false and a macro in interface.port works. The other one tests that interfaces defined using string for port are compared correctly when force=false is used. Previously it was a comparison between int and str, interfaces were seen as different and an error was thrown because we were trying to create twice a main interface. * Try to kindly convert interface port to the string As suggested, the previous behaviour could break current configurations. This solution accepts integers and strings. Co-Authored-By: Dusan Matejka <D3DeFi@users.noreply.github.com> |
||
---|---|---|
.github | ||
bin | ||
changelogs | ||
contrib | ||
docs | ||
examples | ||
hacking | ||
lib/ansible | ||
licenses | ||
packaging | ||
test | ||
.cherry_picker.toml | ||
.gitattributes | ||
.gitignore | ||
.mailmap | ||
CODING_GUIDELINES.md | ||
COPYING | ||
Makefile | ||
MANIFEST.in | ||
MODULE_GUIDELINES.md | ||
README.rst | ||
requirements.txt | ||
setup.py | ||
shippable.yml |
Ansible
Ansible is a radically simple IT automation system. It handles configuration management, application deployment, cloud provisioning, ad-hoc task execution, network automation, and multi-node orchestration. Ansible makes complex changes like zero-downtime rolling updates with load balancers easy. More information on the Ansible website.
Design Principles
- Have a dead simple setup process and a minimal learning curve.
- Manage machines very quickly and in parallel.
- Avoid custom-agents and additional open ports, be agentless by leveraging the existing SSH daemon.
- Describe infrastructure in a language that is both machine and human friendly.
- Focus on security and easy auditability/review/rewriting of content.
- Manage new remote machines instantly, without bootstrapping any software.
- Allow module development in any dynamic language, not just Python.
- Be usable as non-root.
- Be the easiest IT automation system to use, ever.
Use Ansible
You can install a released version of Ansible via pip
, a
package manager, or our release repository. See
our installation
guide for details on installing Ansible on a variety of
platforms.
Red Hat offers supported builds of Ansible Engine.
Power users and developers can run the devel
branch,
which has the latest features and fixes, directly. Although it is
reasonably stable, you are more likely to encounter breaking changes
when running the devel
branch. We recommend getting
involved in the Ansible community if you want to run the
devel
branch.
Get Involved
- Read Community Information for all kinds of ways to contribute to and interact with the project, including mailing list information and how to submit bug reports and code to Ansible.
- Join a Working Group, an organized community devoted to a specific technology domain or platform.
- Submit a proposed code update through a pull request to the
devel
branch. - Talk to us before making larger changes to avoid duplicate efforts. This not only helps everyone know what is going on, it also helps save time and effort if we decide some changes are needed.
- For a list of email lists, IRC channels and Working Groups, see the Communication page
Branch Info
- The
devel
branch corresponds to the release actively under development. - The
stable-2.X
branches correspond to stable releases. - Create a branch based on
devel
and set up a dev environment if you want to open a PR. - See the Ansible release and maintenance page for information about active branches.
Roadmap
Based on team and community feedback, an initial roadmap will be published for a major or minor version (ex: 2.7, 2.8). The Ansible Roadmap page details what is planned and how to influence the roadmap.
Authors
Ansible was created by Michael DeHaan and has contributions from over 4700 users (and growing). Thanks everyone!
Ansible is sponsored by Red Hat, Inc.
License
GNU General Public License v3.0 or later
See COPYING to see the full text.