Code Review
/
ta
/
infra-ansible.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
FIX: Compliance with Akraino security requirements
[ta/infra-ansible.git]
/
roles
/
manage_linux_user
/
tasks
/
main.yml
diff --git
a/roles/manage_linux_user/tasks/main.yml
b/roles/manage_linux_user/tasks/main.yml
index
9640717
..
500be58
100644
(file)
--- a/
roles/manage_linux_user/tasks/main.yml
+++ b/
roles/manage_linux_user/tasks/main.yml
@@
-24,7
+24,7
@@
- name: "remove the old public ssh key"
file:
- name: "remove the old public ssh key"
file:
- path: /home/{{ item.name }}/.ssh/
{{ item.name }}
+ path: /home/{{ item.name }}/.ssh/
authorized_keys
state: absent
with_items: "{{ linuxuser | default([]) }}"
state: absent
with_items: "{{ linuxuser | default([]) }}"
@@
-41,7
+41,7
@@
- name: "add a new public ssh key"
when: item.state == 'present' and item.public_key != ""
lineinfile:
- name: "add a new public ssh key"
when: item.state == 'present' and item.public_key != ""
lineinfile:
- path: /home/{{ item.name }}/.ssh/
{{ item.name }}
+ path: /home/{{ item.name }}/.ssh/
authorized_keys
create: yes
regexp: '.*'
state: "{{ item.state | default('absent') }}"
create: yes
regexp: '.*'
state: "{{ item.state | default('absent') }}"