diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..5ae1bee --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,14 @@ +[defaults] +host_key_checking = false +fact_caching = jsonfile +fact_caching_connection = /tmp/facts_cache +library = library +gather_facts = true +interpreter_python = auto +remote_user = user + +[connection] +pipelining = True + +[ssh_connection] +pipelining = True diff --git a/init.yml b/init.yml new file mode 100644 index 0000000..b75d510 --- /dev/null +++ b/init.yml @@ -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