From 0ec50e697366fb68b42670e7cf04f79e4b84c927 Mon Sep 17 00:00:00 2001 From: L3D Date: Sun, 14 Jan 2024 21:24:12 +0100 Subject: [PATCH] Install bonjour on windows --- .gitignore | 2 ++ .gitmodules | 6 ++++++ ansible.cfg | 15 +++++++++++++++ group_vars/all.yml | 3 +++ hosts.ini | 2 ++ roles/l3d.ansible_version | 1 + roles/win_zeroconf | 1 + site.yml | 11 +++++++++++ 8 files changed, 41 insertions(+) create mode 100644 .gitmodules create mode 100644 ansible.cfg create mode 100644 group_vars/all.yml create mode 100644 hosts.ini create mode 160000 roles/l3d.ansible_version create mode 160000 roles/win_zeroconf create mode 100644 site.yml diff --git a/.gitignore b/.gitignore index 799cafb..d29264d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +# Venv +ansible/ # ---> Vim # Swap [._]*.s[a-v][a-z] diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..5e6cb55 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "roles/win_zeroconf"] + path = roles/win_zeroconf + url = https://git.l3d.ch/voc/win_ansible_role_zeroconf.git +[submodule "roles/l3d.ansible_version"] + path = roles/l3d.ansible_version + url = https://github.com/roles-ansible/ansible_role_versioncheck.git diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..65214a5 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,15 @@ +[defaults] +inventory = ./hosts.ini +retry_files_enabled = false +nocows = true + +log_path = $HOME/.ansible/ansible.log + +forks = 20 +gathering = smart +fact_caching = jsonfile +fact_caching_connection = $HOME/.ansible/facts +host_key_checking = 'accept-new' + +[passwordstore_lookup] +backend = gopass diff --git a/group_vars/all.yml b/group_vars/all.yml new file mode 100644 index 0000000..2487ec3 --- /dev/null +++ b/group_vars/all.yml @@ -0,0 +1,3 @@ +--- +ansible_connection: 'ssh' +ansible_shell_type: 'powershell' diff --git a/hosts.ini b/hosts.ini new file mode 100644 index 0000000..a394fea --- /dev/null +++ b/hosts.ini @@ -0,0 +1,2 @@ +[desktop] +twr.local diff --git a/roles/l3d.ansible_version b/roles/l3d.ansible_version new file mode 160000 index 0000000..2bf5d7c --- /dev/null +++ b/roles/l3d.ansible_version @@ -0,0 +1 @@ +Subproject commit 2bf5d7c4369a8213b42829b14f78920e9906d099 diff --git a/roles/win_zeroconf b/roles/win_zeroconf new file mode 160000 index 0000000..59c93bb --- /dev/null +++ b/roles/win_zeroconf @@ -0,0 +1 @@ +Subproject commit 59c93bba3470d8be65e823cf2df013f4035dd8b3 diff --git a/site.yml b/site.yml new file mode 100644 index 0000000..1464836 --- /dev/null +++ b/site.yml @@ -0,0 +1,11 @@ +--- +- name: Check if ansible is not to old + hosts: localhost + roles: + - {role: l3d.ansible_version, tags: [default, version, default, always], gather_facts: false} + + +- name: Deploy windows users and basic config + hosts: desktop + roles: + - {role: win_zeroconf, tags: zeroconf}