cat git.yml
---
- name: git module demo
hosts: all
become: yes
tasks:
- name: ensure git pkg installed
ansible.builtin.apt:
name: git
state: present
- name: checkout git repo
ansible.builtin.git:
repo: https://<URL>
dest: /Path/to/Dir
ansible-playbook git.yml
No comments:
Post a Comment