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:
parent
ec40b725da
commit
bae56af14b
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue