This should workout:
- name: Create
profile_nodeagent:
state: present
wasdir: /usr/local/WebSphere/AppServer/
name: nodeagent
cell_name: devCellTmp
host_name: localhost
node_name: node1
username: admin
password: ***
dmgr_host: localhost
dmgr_port: 8879
federate: true
- name: Remove
profile_dmgr:
state: absent
wasdir: /usr/local/WebSphere/AppServer/
name: nodeagent