-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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 module fails with multiple items #4855
Comments
@akuznecov what does "instances" look like in your testcase? I can not reproduce the issue with this simple playbook ...
|
@jctanner here is my part of playbook - name: 'Apply recipes to VM'
hosts: vagrant
user: vagrant
sudo: yes
vars:
project_user: 'project'
project_name: 'test'
webserver_root: '/var/www'
webserver_user: 'nginx'
instances:
- name: "dev"
domains: "dev.test.local"
docroot: "{{webserver_root}}/dev"
vhost: application
cron: present
autopull: present
auth: present
solr: present
db: present
- name: "stage"
domains: "stage.test.local stg.test.local"
docroot: "{{webserver_root}}/stage/current"
vhost: static
cron: absent
autopull: absent
auth: present
solr: present
db: present i have tried to apply your playbook(but with one task only) for localhost and it works too for me, but not for remote machine
|
@akuznecov Ah, I see now ....
|
Resolves #4855 issue with synchronize module failing on multiple items
I guess this issue is still running. I guess I have a similar issue. I try with both v1.4.4 (45dde5b) and devel (acae162). Note: when I switch from a branch to an other, I cleanup al The idea is to synchronize some roles from a machine to an other one. Here is a small playbook (
The inventory file is:
Here is the output:
The first round is always a success. The second one (and other if there are) always fails. This is because the remote host is not set on for the |
@renard please open a new bug and I'll take a look. |
CERN maintains its own fork of "Scientific Linux", which identifies as "Scientific Linux CERN SLC". This commit lets Ansible know that this is again another variant of RHEL.
Synchronize module adds unwanted path fragment to rsync destination when multiple items used (with_items)
Part of task with synchronize action and with_items directive:
Got output:
Some of options got duplicated for second item
Ansible: v1.4 (devel)
Python: 2.7
The text was updated successfully, but these errors were encountered: