- name: install git and wget
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: run cmd
ansible.builtin.cmd:ls
- name: run bash shell
ansible.builtin.shell: somescript.sh >> somelog.txt
args:
chdir: somedir/
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)