Commit Graph

23198 Commits (ea8097a8210c74d8d7f549f4358830b65e68478f)
 

Author SHA1 Message Date
Mike Caspar ea8097a821 Documentation updates to use complete YAML : syntax instead of key=val syntax. Adjusted example to use "" where appropriate to pass YAML Syntax checker per Contribution guidelines.
See Issue [# 2879](https://github.com/ansible/ansible-modules-core/issues/2879)
8 years ago
Peter Sprygada 0310363a22 initial add of junos_config module
This adds a new module, junos_config, useed to configure Juniper JUNOS based
devices.  The config module can be used to set an ordered set of set and
delete statements over a cli transport
8 years ago
chouseknecht a5fe046f90 Add ios_commnand module. 8 years ago
chouseknecht be2a50547e Moved Conditional class to netcfg. 8 years ago
Peter Sprygada ab210862f0 initial add of junos_template
This adds a new module, junos_template, that can read in a template
config and push the changes to the device.  It can also backup the
current config.  This module is implemented over cli
8 years ago
Peter Sprygada fb7d5e798c initial add of junos_command module
This adds a new module, junos_command that can be used for sending commands
to Juniper JUNOS based devices.   The junos_command module is implemented
over a cli transport
8 years ago
Brian Coca 2ed38b79cb expanded info on fail on check + missing apt-python
it now explains that apt module will auto install
8 years ago
Luca Berruti feb309e3cf Typo. 8 years ago
David Shrewsbury 66c83fc788 Fix for os_server module when specifying region
Fix the OpenStack os_server module for when region_name is specified.
This should not be passed through to the shade create_server() call
as it's only used with the auth parameters.

Fixes bug: https://github.com/ansible/ansible-modules-core/issues/2797
8 years ago
Matt Clay 4288150270 Do not install python-apt in check mode. 8 years ago
Brian Coca b5c9945485 avoid chmod in check mode 8 years ago
Peter Sprygada 8303eadff1 update eos_config doc string and return values
This change update the return values from eos_config to be consistent with
all network config modules.  This will now return updates and responses
from the module
8 years ago
Peter Sprygada eb5f9c216b update eos_template doc string and return values
This updates the return values form eos_template to be consistent
across all template modules.  This change now returns updates and
respones
8 years ago
Peter Sprygada 279ca048ae update eos_command doc strings and return values
This change updates the returns values from eos_command to be consistent
with network modules. It now returns stdout, stdout_lines and failed_conditionals
8 years ago
Peter Sprygada 79b50f5cf8 update nxos_config doc strings and return values
This commit unifys the return values for the nxos_config module to always
return updates and responses
8 years ago
Peter Sprygada 4873e8ab12 update nxos_template doc strings and return values
This updates the nxos_template doc string to unify the return values
across all network modules.  This change now returns stdout, stdout_lines
and failed_conditionals
8 years ago
Peter Sprygada 00d3e33dbf update nxos_command doc strings and return values
This modifies the return values to make them consistent across all
network command modules.  The module now returns stdout, stdout_lines
and failed_conditionals
8 years ago
Peter Sprygada 25d724a88d update ios_template doc strings and return values
Sets the return values from ios_template to be consistent with the rest
of the network modules.  Return values are now updates and responses
8 years ago
Peter Sprygada d33b840ec6 update ios_config doc strings and return values
This changes the return values to be consistent across all network
config modules. The return values are now updates and responses
8 years ago
Brian Coca 5aff573098 revamped checkmode support in user module
- defaulted to commands not executing in checkmode
- added force run for info gathering (for setting changed)
- added debug for what would have been run in check mode
- added check mode for spots that made changes using system calls instead of command
- removed now redundant checkmode checks

better failure now, if i missed anything, it will misreport changed value
instead of old default of actually making the change in checkmode
8 years ago
Monty Taylor 6aaee42604 Add user_data alias for userdata in os_server
The old nova_compute module called the parameter user_data - having an
alias to the old name is friendly.

Fixes Issue #2920
8 years ago
jjshoe 56f1d6f794 Less engrish 8 years ago
Michael Baydoun 7234ead259 Update ec2.py
Documentation is not clear that tag used in count_tags must be an existing instance_tag
8 years ago
Brian Coca f1d2c71f83 corrected description key spelling 8 years ago
Toshio Kuratomi 03fc2c0c79 use new method of setting locale and other environment variables
The old method left settings in the environment.  The new method takes
care of clearing them after use.  In this module, the old method was
also setting the environment too late to affect all the command line
tools which lead to a bug.

Fixes https://github.com/ansible/ansible/issues/14264
8 years ago
Toshio Kuratomi f8f84f0491 Since we screenscrape output from git to tell us information we need to use the C locale when running commands.
Using another locale would mean that we get information that may have
the strings that we are looking for.

Fixes #2449
Fixes #2462
8 years ago
James Cammarata de082490db Fixing user_data version_added
Fixes #2634
8 years ago
Matt Clay 642746d0a3 Make modify_user_usermod honor check mode on AIX. 8 years ago
chouseknecht c690b318da Adding nxos_nxapi module. 8 years ago
Michal Svab 0676ecc03c Clarify get_url timeout documentation 8 years ago
chouseknecht e66a74531f Adding eos_eapi module. 8 years ago
Peter Sprygada bc9aacd832 bug fix for eos_config module
This addresses a bug in the eos_config module that would prevent it
from running properly.  The module should now properly process the config
and the candidate
8 years ago
Peter Sprygada c5255a1d9e initial add of ios_template module
This adds a new module for working with IOS devices and building configurations
using templates.
8 years ago
Peter Sprygada 69ab2e8909 initial add of ios_config module
This adds a new module ios_config that can be used for configuring
IOS devices.
8 years ago
Peter Sprygada cca8a24d7e bug fix on parameter in eos_config
The eos_config module has a bug where its trying to pass an argument
that doesn't exist.  This fixes that problem, removing the offending
keywork argment
8 years ago
Peter Sprygada 7700ec1f4c fixup docstring in nxos_config module 8 years ago
Toshio Kuratomi a21ce559e5 Make validate_certs for vsphere_guest work with older python2 8 years ago
Charles Paul 3e841c04d2 adding autoremove to apt 8 years ago
Toshio Kuratomi 65a96f5a5d Re-add version_added to fireball docs 8 years ago
Toshio Kuratomi 288b26a732 Fireball was removed in 2.0 (action plugin is gone).
This commit removes the helper module that wouldn't work without the
action module and tells users what to use instead.
8 years ago
Matt Clay 04ad3fe304 Make modify_user honor check mode on OS X. 8 years ago
Peter Sprygada 9a90721720 initial add of new module eos_template
The eos_template module works by allowing configurations to be pushed
to Arista EOS devices that can be templated by the Ansible Jinja2
template engine
8 years ago
Peter Sprygada 022bcbd9e8 initial add of nxos_template module
The nxos_template module worksw by allowing configurations to be pushed
to Cisco NXOS devices over CLI or NXAPI and templated using the Ansible
Jinja2 template engine
8 years ago
Barry Peddycord III 7f86da31b9 Removing alpha-stage modules. 8 years ago
Peter Sprygada 029786a4c5 initial add of new module nxos_command
This adds a new module nxos_command that can be used to send arbitrary
commands to NXOS devices.  The module includes an argument that allows
the responses to be evaluated and causes the module not to return
control to the playbook until a set of conditions has been met.
8 years ago
Tobias Wolf 1ecc8544f6 Add diff for both file contents and file attributes to lineinfile
Using the difflist feature added in ansible/ansible@c337293 we can add
two diffs to the `diff` dict returned as JSON: A `before` and `after` pair of
changed file contents and the diff of the file attributes.

n.b.: the difflist handling from the above commit is logically broken.
PR will follow.

Example output:

    TASK [change line and mode] ************************************************************
    changed: [localhost]
    --- before: /tmp/sshd_config (content)
    +++ after: /tmp/sshd_config (content)
    @@ -65,21 +65,21 @@
     X11DisplayOffset 10
     PrintMotd no
     PrintLastLog yes
     TCPKeepAlive yes
     #UseLogin no

     #MaxStartups 10:30:60
     #Banner /etc/issue.net

     # Allow client to pass locale environment variables
    -AcceptEnv LANG LC_*
    +AcceptEnv        LANG LC_* GF_ENV_*

     Subsystem sftp /usr/lib/openssh/sftp-server

     # Set this to 'yes' to enable PAM authentication, account processing,
     # and session processing. If this is enabled, PAM authentication will
     # be allowed through the ChallengeResponseAuthentication and
     # PasswordAuthentication.  Depending on your PAM configuration,
     # PAM authentication via ChallengeResponseAuthentication may bypass
     # the setting of "PermitRootLogin without-password".
     # If you just want the PAM account and session checks to run without

    --- before: /tmp/sshd_config (file attributes)
    +++ after: /tmp/sshd_config (file attributes)
    @@ -1,3 +1,3 @@
     {
    -    "mode": "0700"
    +    "mode": "0644"
     }
8 years ago
Scott Suehle d9a071089b Adding files to ansible core modules. 8 years ago
Peter Sprygada d3b826dda2 initial add of eos_command module
This adds a new module eos_command to network/eos.  The eos_command module
is used for sending arbitrary commands to Arista EOS devices.  It includes
arguments that allow the module to wait for specific values before the
module returns control to the playbook or fails
8 years ago
Alexey Wasilyev f8adc99196 docker: fix failing in case of empty image tag 8 years ago
Peter Sprygada ad7704c802 initial add of eos_config module
This adds a new module for pushing configuraitons to eos devices in a
reliable and repeatable fashion.  It includes support for templating
configurations and backing up the current config prior to pushing out
changes.  This module works over either CLI or EAPI.

This PR has a dependency on ansible/ansible PR #14009 being merged
8 years ago