tf-ansible-workflow

Terraform/Ansible Workflow for Libvirt
git clone https://git.in0rdr.ch/tf-ansible-workflow.git
Log | Files | Refs | Pull requests |Archive

commit 1e58389c5a744f98b02d69986dc7a8b9337b462d
parent 40fb07e60d8f886d019a4c7396518e484ad676cc
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Wed,  4 Oct 2023 12:30:00 +0200

fix: ssh user dir permissions

Diffstat:
Mlibvirt/ansible/playbook.yml | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/libvirt/ansible/playbook.yml b/libvirt/ansible/playbook.yml @@ -98,6 +98,16 @@ loop: '{{ additional_users }}' when: item.authorized_key | default(false, true) become: yes + + - name: fix ssh user dir permissions + ansible.builtin.file: + path: '/home/{{ item.name }}/.ssh' + state: directory + recurse: yes + owner: '{{ item.name }}' + group: '{{ item.name }}' + loop: '{{ additional_users }}' + become: yes when: additional_users | default(false, true) # endblock add additional users