---
- name: Setup deploy group
  group: name={{ deploy_group }} state=present

- name: Setup deploy user
  user: name={{ deploy_user }} group={{ deploy_group }} groups={{ deploy_groups }} state=present

- name: Adding public key to server
  authorized_key: user={{ deploy_user }} key='{{ item }}'
  with_file: deploy_keys

---
- name: Setup deploy group
  group: name={{ deploy_group }} state=present

- name: Setup deploy user
  user: name={{ deploy_user }}
        group={{ deploy_group }}
        groups={{ deploy_groups }}
        state=present
        shell=/bin/bash

- name: Adding public key to server
  authorized_key: user={{ deploy_user }} key='{{ item }}'
  with_file: deploy_keys

Add bash shell to deploy user
Add bash shell to deploy user