Commit Graph

8087 Commits (a38bdfc72023a936c9003f790e3f787a5d5599db)
 

Author SHA1 Message Date
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"
     }
9 years ago
Toshio Kuratomi c8d5fdaf27 Merge pull request #2891 from ansible/synchronize-better-error-missing-rsync
Better error message when rsync nad ssh aren't present where synchronize is run
9 years ago
Toshio Kuratomi cb1fefdf92 Better error message when rsync nad ssh aren't present where synchronize is run
Fixes https://github.com/ansible/ansible/issues/9305
9 years ago
Brian Coca 3239691e9e Merge pull request #2870 from towolf/add_diff_to_synchronize
Add custom diff field to synchronize module
9 years ago
Tobias Wolf 3d606dd2b4 Add supports_check_mode=True to mysql_db module
The most important cases are state=present and state=absent.

Future work: import and dump could be simulated and hence checked.
9 years ago
Michael Scherer c01cc5f6e4 Do not use a shell construct for rhnreg_ks
Since there is no shell escape of the password parameter, a password with
a single quote (or even worst, a single quote and a pipe) could have
unattended consequences. Also, the less we use use_unsafe_shell=True, the
better.
9 years ago
Tobias Wolf cd3b9366fe Add custom or 'prepared' diff field to synchronize module
This PR depends on pull requeest ansible/ansible#14105

rsync has a custom diff output that cannot easily be expressed as
`/usr/bin/diff before after`
9 years ago
Brian Coca cdfb578b60 Merge pull request #2646 from h1ppo/patch-2
updating choices for rds parameter engines
9 years ago
Brian Coca 9e5737d776 Merge pull request #2661 from mscherer/remove_unsafe_shell_apt_repos
Split a shell snippet in 2 to avoid using use_unsafe_shell=True
9 years ago
Brian Coca c36bd28d08 Merge pull request #2641 from aaronkurtz/devel
Remove 'cache_table' from required params
9 years ago
Brian Coca 382ae8f15f Merge pull request #2800 from noqcks/iam-grammar-issue
IAM Module: fixed grammatical issue in iam.py. exit -> exist.
9 years ago
Brian Coca a75fa8df05 added missing version_added 9 years ago
Brian Coca d2c50688de Merge pull request #2814 from Shrews/purge_fip
Add purge option to os_floating_ip module
9 years ago
Brian Coca 5e38b0e0c1 added missing version_Added 9 years ago
Brian Coca 1ebe143618 Merge pull request #2829 from juliakreger/add-os-ironic-node-wait
Add wait support to os_ironic_node
9 years ago
Toshio Kuratomi 25414bbd1b Merge pull request #2883 from ansible/synchronize-become-is-reversed
Add an internal param instructing synchronize to replace localhost wi…
9 years ago
Toshio Kuratomi d9e29752c1 Add an internal param instructing synchronize to replace localhost with the host that's being ssh'd from 9 years ago
Scott Suehle 48270402d3 Adding files to ansible core modules. 9 years ago
Brian Coca 55dcb52b52 Merge pull request #2865 from grahamu/django_manage_documentation
Update django_manage documentation
9 years ago
Brian Coca 7708017801 Merge pull request #2871 from yfried-redhat/fix_glance_image
Fix glance_client module
9 years ago
Yair Fried 2692e494e5 Fix glance_client module
Wrong variable name.
9 years ago
Graham Ullrich e002161e6c Update django_manage documentation
As of Ansible 2.x, invocation of Django's ```manage.py``` requires a valid "shebang". Additionally, ```manage.py``` must be executable.
The old invocation was hardcoded as ```python manage.py ...``` while the new invocation is ```./manage.py ...```. See [this PR](https://github.com/ansible/ansible-modules-core/pull/1165).
This change allows more flexibility for which Python interpreter is invoked, but breaks existing deployment when ```manage.py``` is not properly configured. This documentation update adds a note explaining the new requirements for ```manage.py```.
9 years ago
Matt Martz 76925ef613 Merge pull request #2858 from sivel/issue/14064
Add note about precautions of using become with fetch
9 years ago
Matt Martz 3f232beb0a Add note about precautions of using become with fetch. Addresses https://github.com/ansible/ansible/issues/14064 9 years ago
Toshio Kuratomi 09e2457eb0 Fix documentation build in hostname 9 years ago
Toshio Kuratomi 0b7469fa90 Fix documentation build 9 years ago
Toshio Kuratomi 76a478a226 Document that synchronize in 2.0.0.x has broken sudo behaviour.
Part of the changes for #13825
9 years ago
Alexey Wasilyev 511ce25ac8 docker: fix failing in case of empty image tag 9 years ago
Toshio Kuratomi d7fac82f97 Fix for yum's use of rpm with non English locales
Depends upon https://github.com/ansible/ansible/pull/14025

Fixes https://github.com/ansible/ansible/issues/13996
Fixes https://github.com/ansible/ansible/issues/13975
9 years ago
Brian Coca 35b131e71a Merge pull request #2841 from techraf/docs-typo
Fixed typo in example playbook
9 years ago
Kanwei Li 92ad137d46 Add new Dv2 Azure instances 9 years ago
techraf 2016d3d822 Fixed typo in example playbook 9 years ago
Brian Coca 08135a9cf8 Merge pull request #2778 from sunnyone/fix-iam-policy-pdoc-treatment
Fix iam_policy pdoc variable assignment
9 years ago
Brian Coca ffea58ee86 Merge pull request #2817 from atplanet/ec2-ami-find-fix-region
Remove explicit region parameter from ec2_ami_find
9 years ago
Brian Coca 0c0929ab6e Merge pull request #2812 from leehuk/fix_check_mode_error
- fix check_mode test to avoid errors
9 years ago
Brian Coca 0d1a154fac Merge pull request #2805 from Shrews/fix_os_server_exc
Fix OpenStack module failure output
9 years ago
Brian Coca 1ab46f1e79 Merge pull request #2795 from hnakamur/add_warning_to_hostname_doc
Doc: Add NOTE about hostname modules does not modify /etc/hosts
9 years ago
Brian Coca 61379184d4 Merge pull request #2794 from evverx/fix-apt-key-del-long-id
apt-key: convert ids to the 'short' format
9 years ago
Brian Coca df222bed86 added missing version_added 9 years ago
Brian Coca f0ca21ed28 Merge pull request #2791 from techraf/get_url-backup-feature
Added 'backup' parameter to get_url module
9 years ago
Brian Coca 493f06435c Merge pull request #2768 from quinot/topic/abs_cron_file
Allow cron_file to be an absolute path
9 years ago
Brian Coca e826f5071e Merge pull request #2241 from daniel-sc/devel
Allowing to specify specific external ip for gce instances
9 years ago
Brian Coca 18bad1f691 tabs are bad 9 years ago
Luca Berruti 933a44ba78 cron module: add enviroment variables management 9 years ago
Brian Coca 51c3aa4267 Merge pull request #2834 from Sodki/fix_certificat_misspell
Fix misspelling of the word 'certificate'
9 years ago
Henrique Rodrigues b8d2a3d3b4 Fix misspelling of the word 'certificate' 9 years ago
Brian Coca fbaf4fb628 Merge pull request #2746 from ferrants/patch-2
updated s3 module documentation
9 years ago
Brian Coca 9c80b1adb7 added note about awslogs version added 9 years ago
Brian Coca b96cd854da Merge pull request #2437 from j3ffrw/devel
add awslogs option in docker module log driver
9 years ago
Brian Coca 618f74f35f added version_added 9 years ago