Use synchronize for nodepool elements

This allows us to purge out of date data on the remote node.

Change-Id: I55fe331ed58eaba5df7472977c7ed4a84272c891
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-04-09 11:01:10 -04:00
parent ec40b725da
commit bae56af14b
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
2 changed files with 6 additions and 5 deletions

View File

@ -17,4 +17,4 @@ virtualenv_install_method: pip
# windmill-config
# TODO(pabelanger): Create windmill-config project on git.o.o.
windmill_config_git_dest: ../config
windmill_config_git_dest: "{{ lookup('pipe', 'pwd') | dirname }}/config"

View File

@ -72,11 +72,12 @@
- name: Install nodepool elements directory
become: yes
copy:
synchronize:
delete: yes
dest: /etc/nodepool/
group: nodepool
mode: preserve
owner: nodepool
perms: yes
rsync_opts:
- '--chown=nodepool:nodepool'
src: "{{ windmill_config_git_dest }}/nodepool/elements"
- name: Setup openstack.ssh role