Commit d0416803 by ansible

add Create Directory

1 parent bbfe1d91
Showing with 9 additions and 0 deletions
......@@ -20,6 +20,15 @@
- name: Grant Permission
command: usermod -aG sudo ansible
- name: New Directory for authorized_keys
file:
path: "{{ item.path }}"
owner: "{{ item.owner }}"
group: "{{ item.owner }}"
state: directory
with_items:
- { owner: ansible, path: /home/ansible/.ssh }
- copy:
src: /tmp/configuration/authorized_keys
dest: /home/ansible/.ssh/authorized_keys
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!