style: formating

This commit is contained in:
vincent 2023-01-15 11:17:27 +01:00
parent f1b471bc31
commit 975dd6d8aa

View File

@ -2,7 +2,7 @@
# tasks file for ansible-user
- name: Print user name
ansible.builtin.debug:
msg: {{ user_name }}
msg: '{{ user_name }}'
- name: Create system user
become: true
ansible.builtin.user:
@ -13,11 +13,11 @@
home: "{{ user_home | default('/') }}"
shell: "{{ user_shell | default('/usr/bin/nologin') }}"
when: user_name != "root" and not user_ldap
- name: simulate login
stat:
path: "/home/{{user.name}}"
- name: Simulate login
ansible.builtin.stat:
path: '/home/{{ user.name }}'
become: true
become_user: "{{user.name}}"
become_user: '{{ user.name }}'
when: user_ldap
- name: Ensure .ssh exist for user
@ -38,7 +38,6 @@
selevel: s0
owner: '{{ user_name }}'
- name: Install ssh private key
become: true
ansible.builtin.copy:
@ -54,5 +53,3 @@
key: '{{ item }}'
exclusive: false
with_items: '{{ user_authorized_key }}'