The below gives an example of creating and removing WebSphere Application Server Deployment Manager Profile. Check it out:
- name: Create
  profile_dmgr: 
    state: present 
    wasdir: /usr/local/WebSphere/AppServer/ 
    name: dmgr 
    cell_name: devCell 
    host_name: localhost 
    node_name: devcell-dmgr 
    username: admin 
    password: allyourbasearebelongtous
- name: Remove
  profile_dmgr: 
    state: absent 
    wasdir: /usr/local/WebSphere/AppServer/ 
    name: dmgr