ceph-ansible/roles/ceph-iscsi-gw/tasks
Guillaume Abrioux 6200f90ab2 iscsi: fix permission denied error
Typical error:
```
fatal: [iscsi-gw0]: FAILED! =>
  msg: 'an error occurred while trying to read the file ''/home/guits/ceph-ansible/tests/functional/all_daemons/fetch/e5f4ab94-c099-4781-b592-dbd440a9d6f3/iscsi-gateway.key'': [Errno 13] Permission denied: b''/home/guits/ceph-ansible/tests/functional/all_daemons/fetch/e5f4ab94-c099-4781-b592-dbd440a9d6f3/iscsi-gateway.key'''
```

`become: True` is not needed on the following task:

`copy crt file(s) to gateway nodes`.

Since it's already set in the main playbook (site.yml/site-container.yml)

The thing is that the files get generated in the 'fetch_directory' with
root user because there is a 'delegate_to' + we run the playbook with
`become: True` (from main playbook).

The idea here is to create files under ansible user so we can open them
later to copy them on the remote machine.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 9d590f4339)
2019-02-11 16:17:44 +00:00
..
container systemd: remove changed_when: false 2018-06-28 17:54:13 +02:00
non-container igw: enable and start rbd-target-api 2018-09-13 19:35:45 +00:00
common.yml refact osd pool size customization 2018-11-29 01:49:05 +00:00
deploy_ssl_keys.yml iscsi: fix permission denied error 2019-02-11 16:17:44 +00:00
main.yml don't use "include" to include tasks 2018-09-27 17:53:40 +02:00