Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name:
- hosts: all
- become: true
- vars:
- git_repository: "https://github.com/Panda-Academy-Core-2-0/Ansible_roles.git"
- git_branch: "main"
- tasks:
- - name: Create a directory if it does not exist
- file:
- path: /etc/ansible/roles
- state: directory
- mode: '0755'
- - name: Git checkout
- git:
- repo: "{{ git_repository }}"
- dest: "/etc/ansible/roles"
- version: "{{ git_branch }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement