ansible/system
Marius Gedminas 4ae4331a6b user: don't generate SSH keys in check mode
Fixes https://github.com/ansible/ansible/issues/11768

Test plan:

- (in a Vagrant VM) created a user 'bob' with no ssh key
- ran the following playbook in check mode:

    ---
    - hosts: trusty
      tasks:
        - user: name=bob state=present generate_ssh_key=yes

- saw that ansible-playbook reported "changes=1"
- saw that /home/bob/.ssh was still absent
- ran the playbook for real
- saw that /home/bob/.ssh was created
- ran the playbook in check mode again
- saw that ansible-playbook reported no changes
- tried a variation with a different username for a user that didn't
  exist: ansible-playbook --check worked correctly (no errors, reported
  "changed")
2015-08-26 08:51:52 +03:00
..
__init__.py package files 2014-09-26 11:05:47 -04:00
authorized_key.py Fix documentation of authorized_key.py 2015-08-17 18:00:04 +03:00
cron.py minor doc fixes 2015-08-12 23:55:01 -04:00
group.py Check if the gid is set 2015-07-18 17:53:02 +02:00
hostname.py Add Solaris support in hostname module 2015-07-25 23:32:55 +09:00
mount.py mount: Support for Check-Mode 2015-07-23 15:51:24 -04:00
ping.py Proper author info for all remaining modules 2015-06-15 15:53:30 -04:00
seboolean.py Proper author info for all remaining modules 2015-06-15 15:53:30 -04:00
selinux.py Proper author info for all remaining modules 2015-06-15 15:53:30 -04:00
service.py made continue into a pass (there was no loop) 2015-08-13 10:05:30 -04:00
setup.py changed verbose override variable 2015-07-29 14:54:19 -04:00
sysctl.py Proper author info for all remaining modules 2015-06-15 15:53:30 -04:00
user.py user: don't generate SSH keys in check mode 2015-08-26 08:51:52 +03:00