Check if /etc/ssl/certs exists before creating it 81/42481/5
authorTapio Tallgren <tapio.tallgren@nokia.com>
Wed, 20 Sep 2017 07:19:12 +0000 (10:19 +0300)
committerTapio Tallgren <tapio.tallgren@nokia.com>
Fri, 29 Sep 2017 11:34:11 +0000 (14:34 +0300)
commit566eb05ce1e9fb5fc6197a482a0f9dff37a07e94
tree0178f5fce604aba1a75a8e00e31680dbcb0d3ff8
parentcfd3a2099c5687e23c80bfdee55127572a39edc9
Check if /etc/ssl/certs exists before creating it

In CentOS and Suse, /etc/ssl/certs is a symbolic link to
/etc/ssl/pki/tls/certs.  The Ansible module "file" will fail if it is asked to
create a directory which is already a symbolic link.

This patch will check if /etc/ssl/certs exists before trying to create it.

The same check is done both on the host and the opnfv guest VM.

Also, /etc/certs is only writable by root, so we need a "become: true" clause
to be able to modify it in localhost (but not in opnvf VM).

Change-Id: Iab6c3c162548f84ad6082829e4a7c2ab63d2cfa0
Signed-off-by: Tapio Tallgren <tapio.tallgren@nokia.com>
xci/playbooks/configure-localhost.yml
xci/playbooks/configure-opnfvhost.yml