Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronize ignores check mode #6155

Closed
dalevizo opened this issue Feb 24, 2014 · 2 comments
Closed

Synchronize ignores check mode #6155

dalevizo opened this issue Feb 24, 2014 · 2 comments
Labels
bug This issue/PR relates to a bug.

Comments

@dalevizo
Copy link
Contributor

Issue Type:

Bug report

Ansible Version:

1.4

Environment:

Centos 5

Summary:

Synchronize module seems to ignore check mode flag even though supports_check_mode = True is set.

Steps To Reproduce:

Run a playbook with a synchronize action with --check
root@vader:ansible $ cat poppers-sync.yml
---
- hosts: doverc1
user: root
tasks:
- name: static dovecot conf files
synchronize: src=/tmp/ansible/files/poppers/dovecot/ dest=/tmp/dovecot/etc/dovecot/

root@vader:ansible $ /usr/bin/ansible-playbook poppers-sync.yml --check -v -v
Expected Results:

rsync should run with the --dry-run option

Actual Results:

rsync runs without the --dry-run

root@vader:ansible $ /usr/bin/ansible-playbook poppers-sync.yml --check -v -v
PLAY [doverc1] **************************************************************** 

GATHERING FACTS *************************************************************** 
<doverc1> REMOTE_MODULE setup  CHECKMODE=True
ok: [doverc1]

TASK: [static dovecot conf files] ********************************************* 
changed: [doverc1] => {"changed": true, "cmd": "rsync --delay-updates --compress --timeout=10 --archive --rsh 'ssh -i /root/.ssh/id_dsa -o StrictHostKeyChecking=no' --out-format='<<CHANGED>>%i %n%L' /tmp/ansible/files/poppers/dovecot/ root@doverc1:/tmp/dovecot/etc/dovecot/", "msg": ".d..t...... ./\n<f+++++++++ README\n<f+++++++++ antispam.sieve\n<f+++++++++ dovecot-dict-sql.conf.ext\n<f+++++++++ dovecot-ldap.conf.ext\n<f+++++++++ dovecot.conf\ncd+++++++++ conf.d/\n<f+++++++++ conf.d/10-auth.conf\n<f+++++++++ conf.d/10-director.conf\n<f+++++++++ conf.d/10-logging.conf\n<f+++++++++ conf.d/10-mail.conf\n<f+++++++++ conf.d/10-master.conf\n<f+++++++++ conf.d/10-ssl.conf\n<f+++++++++ conf.d/15-lda.conf\n<f+++++++++ conf.d/20-imap.conf\n<f+++++++++ conf.d/20-lmtp.conf\n<f+++++++++ conf.d/20-pop3.conf\n<f+++++++++ conf.d/90-acl.conf\n<f+++++++++ conf.d/90-plugin.conf\n<f+++++++++ conf.d/90-quota.conf\n<f+++++++++ conf.d/90-sieve.conf\n<f+++++++++ conf.d/auth-checkpassword.conf.ext\n<f+++++++++ conf.d/auth-deny.conf.ext\n<f+++++++++ conf.d/auth-ldap.conf.ext\n<f+++++++++ conf.d/auth-master.conf.ext\n<f+++++++++ conf.d/auth-passwdfile.conf.ext\n<f+++++++++ conf.d/auth-sql.conf.ext\n<f+++++++++ conf.d/auth-static.conf.ext\n<f+++++++++ conf.d/auth-system.conf.ext\n<f+++++++++ conf.d/auth-vpopmail.conf.ext\n", "rc": 0}

PLAY RECAP ******************************************************************** 
doverc1                    : ok=2    changed=1    unreachable=0    failed=0   
@jctanner
Copy link
Contributor

@dalevizo thanks for the report. Should be fixed in devel now.

@dalevizo
Copy link
Contributor Author

Yes I confirm it's working.
Thank you.
Στις 25 Φεβ 2014 4:11 ΜΜ, ο χρήστης "jctanner" notifications@github.com
έγραψε:

@dalevizo https://github.com/dalevizo thanks for the report. Should be
fixed in devel now.


Reply to this email directly or view it on GitHubhttps://github.com//issues/6155#issuecomment-36010354
.

@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 6, 2018
@ansible ansible locked and limited conversation to collaborators Apr 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants