Commit d0448314 by ansible

no message

1 parent 98d5b8ba
Showing with 15 additions and 3 deletions
......@@ -2,12 +2,24 @@
- hosts: new-host
become: true
tasks:
- name: Deploy Ansible User
command: useradd -m -c "ansible user" -s /bin/bash -U ansible --uid 1111
- name: New Ansbile Group
group:
name: ansbile
state: present
- name: New Ansible User
user: useradd -m -c "ansible user" -s /bin/bash -U ansible --uid 1111
uid: 1111
home: /home/ansible
name: ansible
group: ansible
shell: /bin/bash
system: no
createhome: yes
- name: Grant Permission
command: usermod -aG sudo ansible
- 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!