temp!
This commit is contained in:
parent
651909ff71
commit
8bcb5ccf48
@ -1,17 +1,32 @@
|
||||
---
|
||||
- name: create /etc/ansible
|
||||
become: true
|
||||
file:
|
||||
dest: /etc/ansible
|
||||
state: directory
|
||||
|
||||
- name: create hosts file
|
||||
become: true
|
||||
template:
|
||||
src: templates/hosts.j2
|
||||
dest: /etc/ansible/hosts
|
||||
|
||||
- name: create external directory
|
||||
file:
|
||||
dest: external
|
||||
state: directory
|
||||
|
||||
- name: clone ansible win_git module
|
||||
git:
|
||||
repo: https://github.com/tivrobo/ansible-win_git.git
|
||||
dest: external/ansible-win_git
|
||||
version: master
|
||||
|
||||
- name: create ansible modules directory
|
||||
file:
|
||||
dest: ~/.ansible/plugins/modules
|
||||
state: directory
|
||||
|
||||
- name: copy win_git files to ansible modules directory
|
||||
copy:
|
||||
src: '~/.config/local/external/ansible-win_git/{{item}}'
|
||||
|
10
roles/wsl/templates/hosts.j2
Normal file
10
roles/wsl/templates/hosts.j2
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
all:
|
||||
children:
|
||||
windows:
|
||||
hosts:
|
||||
{{ansible_host}}:
|
||||
ansible_user: {{ansible_user}}
|
||||
ansible_connection: ssh
|
||||
ansible_shell_type: powershell
|
||||
|
Loading…
x
Reference in New Issue
Block a user