root@ip-172-31-87-83:/home/ubuntu/peter# cat web3.yaml
- name: Install git wget hosts: web
tasks:
- name: Install Git in ubuntu ansible.builtin.apt: name: "git" state: latest
- name: Install Wget ansible.builtin.apt: name: wget state: latest
- name: run bash script ansible.builtin.shell: cmd: ls -l | grep log | cat
- name: Print message ansible.builtin.debug: msg: "Installlation successful!"
root@ip-172-31-87-83:/home/ubuntu/peter#
Top comments (0)