add some basic stuff
This commit is contained in:
16
init.yml
Normal file
16
init.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
- name: clone git repo to roles directory
|
||||
hosts: localhost
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- name: ensure roles directory exists
|
||||
file:
|
||||
path: "roles"
|
||||
state: directory
|
||||
|
||||
- name: clone git repo into roles directory
|
||||
git:
|
||||
repo: 'git@gitlab.com:linux_factory1/ansible_roles.git'
|
||||
dest: "roles"
|
||||
version: main
|
||||
force: yes
|
||||
Reference in New Issue
Block a user