How to deploy war file into the Websphere using ansible playbook

0 votes
Jun 10 in Ansible by M
• 140 points
118 views

1 answer to this question.

0 votes

Hi@M,

You can use the below-given example.

- 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
answered Jun 29 by MD
• 42,420 points

Related Questions In Ansible

0 votes
1 answer

How do I wget a file from web server using shell in the ansible playbook

Hey Ayaan, you could probably use this ...READ MORE

answered Jan 24, 2019 in Ansible by Anushri
1,393 views
0 votes
1 answer

devops , how to create user using ansible playbook

root doesn't need a password to switch ...READ MORE

answered Jul 16, 2018 in Ansible by Kalgi
• 2,620 points
199 views
0 votes
1 answer

How to encrypt and existing file using Ansible Vault?

Hey @Kyraa, to encrypt an existing file ...READ MORE

answered Jan 29, 2019 in Ansible by Kavya
1,325 views
0 votes
1 answer

How to create a new encrpted file using Ansible Vault?

If you are creating a new file ...READ MORE

answered Jan 29, 2019 in Ansible by Kyraa
157 views
0 votes
1 answer
+1 vote
1 answer
0 votes
0 answers

how can we unarchive multiple different files using ansible-playbook? i tried this yml file its getting error

---   - hosts: all     become: yes     vars:     - path: /home/ansadmin     tasks:     - name: ...READ MORE

Aug 17, 2019 in Ansible by Rajendra
• 470 points
1,412 views
0 votes
1 answer

How to overwrite the content of a file in remote systems using Ansible playbook?

Hi@akhtar, You can find one argument in the ...READ MORE

answered Aug 2 in Ansible by MD
• 42,420 points
26 views
0 votes
1 answer

How to configure httpd web server using Ansible Playbook?

Hi@akhtar, You need to write one program file ...READ MORE

answered Jul 30 in Ansible by MD
• 42,420 points
38 views