Comment 1 for bug 1887708

Revision history for this message
John Fulton (jfulton-org) wrote :

This is not something we want to run on all overcloud nodes:

[CentOS-8.2 - stack@undercloud ceph-ansible]$ cat create_ceph_ansible_remote_tmp.yml
- hosts: all
  gather_facts: no
  tasks:
    # Avoiding the following by creating directory owned by user who will
    # SSH into nodes (not root). When root needs to write to this directory
    # it will not have permission problems by definition. As per ansible:
    # """
    # Module remote_tmp /tmp/ceph_ansible_tmp did not exist and was created
    # with a mode of 0700, this may cause issues when running as another user.
    # To avoid this, create the remote_tmp dir with the correct permissions
    # manually.
    # """
    - name: create ceph_ansible_remote_tmp on all nodes with necessary ownership
      become: true
      file:
        path: "/tmp/ceph_ansible_tmp"
        owner: "stack"
        group: "stack"
        mode: "700"
        state: directory
[CentOS-8.2 - stack@undercloud ceph-ansible]$