Debug School

Uttam Samudrala
Uttam Samudrala

Posted on

Install of git, wget and run bash command

Image description
Image description

=========================================

  • name: Update web servers hosts: web

tasks:

  • name: Bash Script ansible.builtin.shell: cmd: "uname -a"
  • name: Print return information from the previous task ansible.builtin.debug: msg: "Run bash command uname -a by Uttam"

=============================================


  • name: Update web servers hosts: web

tasks:

  • name: Install git in ubuntu ansible.builtin.apt: name: "git" state: latest
  • name: Install wget in ubuntu ansible.builtin.apt: name: "wget" state: latest
  • name: Bash Script ansible.builtin.shell: cmd: ls -l | grep log chdir: root/
  • name: Print return information from the previous task ansible.builtin.debug: msg: "Install git and wget and run bash by Uttam"

Top comments (0)