No description
Find a file
Tobias Wolf 99ba594f0a 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"
     }
2016-01-27 12:36:11 +01:00
cloud Merge pull request #2646 from h1ppo/patch-2 2016-01-25 23:46:12 -05:00
commands command: Add warnings for dnf and zypper 2015-12-22 10:08:59 +01:00
database - fix check_mode test to avoid errors 2016-01-14 12:08:25 -05:00
files Add diff for both file contents and file attributes to lineinfile 2016-01-27 12:36:11 +01:00
inventory Add missing GPLv3 License header 2015-07-03 22:57:53 -05:00
network added missing version_added 2016-01-18 20:46:44 -05:00
packaging Merge pull request #2661 from mscherer/remove_unsafe_shell_apt_repos 2016-01-25 23:45:02 -05:00
source_control Merge pull request #2528 from jordiecometrica/hg-discard 2016-01-12 09:34:29 -05:00
system Fix documentation build in hostname 2016-01-21 08:37:56 -08:00
test/unit/cloud/openstack add some unit tests for the os_server module 2015-10-16 21:03:50 -04:00
utilities clarified set_fact function 2015-11-17 10:05:15 -08:00
web_infrastructure Merge pull request #2641 from aaronkurtz/devel 2016-01-25 23:44:35 -05:00
windows Merge pull request #2692 from hantonov/devel 2016-01-15 09:33:12 -08:00
.gitignore Add basic top level files. 2014-09-26 09:21:20 -04:00
.travis.yml Disable travis docs checks 2015-07-01 07:24:39 -07:00
__init__.py package files 2014-09-26 11:05:47 -04:00
CONTRIBUTING.md Add new policy guidelines for Core 2015-07-23 14:23:00 -04:00
COPYING Add basic top level files. 2014-09-26 09:21:20 -04:00
README.md updated to keep same info as in extras repo 2015-03-10 10:35:29 -04:00
test-docs.sh Add testing of docs to the core repo 2015-06-29 12:42:50 -07:00
test-requirements.txt add some unit tests for the os_server module 2015-10-16 21:03:50 -04:00
VERSION Version bump for new beta 2.0.0-0.5.beta3 2015-11-13 16:46:32 -05:00

ansible-modules-core

This repo contains Ansible's most popular modules that are shipped with Ansible.

New module submissions for modules that do not yet exist should be submitted to ansible-modules-extras, rather than this repo.

Take care to submit tickets to the appropriate repo where modules are contained. The docs.ansible.com website indicates this at the bottom of each module documentation page.

Reporting bugs

Take care to submit tickets to the appropriate repo where modules are contained. The repo is mentioned at the bottom of module documentation page at docs.ansible.com.

Testing modules

Ansible module development guide contains the latest info about that.

License

As with Ansible, modules distributed with Ansible are GPLv3 licensed. User generated modules not part of this project can be of any license.

Installation

There should be no need to install this repo separately as it should be included in any Ansible install using the official documented methods.