Commit d0448314 by ansible

no message

1 parent 98d5b8ba
Showing with 14 additions and 2 deletions
...@@ -2,8 +2,20 @@ ...@@ -2,8 +2,20 @@
- hosts: new-host - hosts: new-host
become: true become: true
tasks: tasks:
- name: Deploy Ansible User - name: New Ansbile Group
command: useradd -m -c "ansible user" -s /bin/bash -U ansible --uid 1111 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 - name: Grant Permission
command: usermod -aG sudo ansible command: usermod -aG sudo ansible
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!