Browse Source

Merge "Ensure $HOME dir exists and has the right owner/group"

changes/69/776969/7
Zuul 1 month ago
committed by Gerrit Code Review
parent
commit
c8726e39ad
2 changed files with 10 additions and 0 deletions
  1. +1
    -0
      tripleo_ansible/playbooks/cli-enable-ssh-admin.yaml
  2. +9
    -0
      tripleo_ansible/roles/tripleo_create_admin/tasks/create_user.yml

+ 1
- 0
tripleo_ansible/playbooks/cli-enable-ssh-admin.yaml View File

@ -78,6 +78,7 @@
state: directory
mode: "0700"
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
become: true
- name: Ensure ssh key pair


+ 9
- 0
tripleo_ansible/roles/tripleo_create_admin/tasks/create_user.yml View File

@ -27,6 +27,15 @@
{{ tripleo_admin_user }} ALL=(ALL) NOPASSWD:ALL
mode: 0440
# workaround for https://bugs.launchpad.net/tripleo/+bug/1917856
- name: ensure home dir has the right owner/group for user {{ tripleo_admin_user }}
file:
path: /home/{{ tripleo_admin_user }}
state: directory
owner: '{{ tripleo_admin_user }}'
group: '{{ tripleo_admin_user }}'
mode: 0700
- name: ensure .ssh dir exists for user {{ tripleo_admin_user }}
file:
path: /home/{{ tripleo_admin_user }}/.ssh


Loading…
Cancel
Save