Commit 4e4b3333 by ansible

no message

1 parent 17bfe066
Showing with 17 additions and 0 deletions
---
- hosts: new-host
become: true
tasks:
- name: Deploy Ansible User
command: useradd -m -c "ansible user" -s /bin/bash -U ansible --uid 1111
- name: Grant Permission
command: usermod -aG sudo ansible
- name: Deploy Key
copy:
src: /tmp/configuration/authorized_keys
dest: /home/ansible/.ssh/authorized_keys
owner: ansible
group: ansible
mode: 0600
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!