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]$
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 ansible_ tmp did not exist and was created remote_ tmp on all nodes with necessary ownership ansible_ tmp"
- 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_
# 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_
become: true
file:
path: "/tmp/ceph_
owner: "stack"
group: "stack"
mode: "700"
state: directory
[CentOS-8.2 - stack@undercloud ceph-ansible]$