Don't fail symlinking puppet modules if directory exists

When creating symlinks in /etc/puppet/modules, don't fail if a directory
already exists. This fixes a problem when using puppet module artifacts.

Change-Id: I97d4c127a9f29e99946845660a810e89ea938bee
This commit is contained in:
Alan Bishop 2020-02-17 17:21:27 -08:00
parent 74996fba58
commit ed86161d72
1 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,10 @@
- name: Symlink puppet modules under /etc/puppet/modules
shell: >-
ln -f -s /usr/share/openstack-puppet/modules/* /etc/puppet/modules/
register: result
failed_when:
- result.rc != 0
- "'cannot overwrite directory' not in result.stderr"
tags:
- skip_ansible_lint