From 798689ee7f6905be78e11d04950979a905ce938c Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 14 Nov 2023 19:19:50 +0100 Subject: [PATCH] init nas config --- ansible/molecule/default/molecule.yml | 46 +++++++++++++++++++++++++++ ansible/roles/requirements.yml | 2 ++ ansible/site.yml | 1 + ansible/staging | 4 +++ 4 files changed, 53 insertions(+) create mode 100644 ansible/molecule/default/molecule.yml diff --git a/ansible/molecule/default/molecule.yml b/ansible/molecule/default/molecule.yml new file mode 100644 index 0000000..c584774 --- /dev/null +++ b/ansible/molecule/default/molecule.yml @@ -0,0 +1,46 @@ +--- +prerun: false +dependency: + name: galaxy + enabled: false +driver: + name: vagrant + provider: + name: libvirt + default_box: archlinux/archlinux +platforms: + - name: oscar-dev + cpu: 1 + memory: 1024 + box: archlinux/archlinux + - name: merlin-dev + cpu: 1 + memory: 1024 + box: generic/rocky9 + - name: gerard-dev + cpu: 1 + memory: 1024 + box: debian/bookworm64 + - name: nas-dev + cpu: 1 + memory: 1024 + box: archlinux/archlinux + +provisioner: + name: ansible + connection_options: + ansible_ssh_user: vagrant + ansible_become: true + env: + ANSIBLE_CONFIG: ../../ansible.cfg + ANSIBLE_ROLES_PATH: "../../roles" + log: true + lint: + name: ansible-lint + inventory: + host_vars: [] + links: + group_vars: ../../group_vars + hosts: ../../staging +verifier: + name: ansible diff --git a/ansible/roles/requirements.yml b/ansible/roles/requirements.yml index 8dcf4e6..778a3cf 100644 --- a/ansible/roles/requirements.yml +++ b/ansible/roles/requirements.yml @@ -40,3 +40,5 @@ - src: git@github.com:vincentDcmps/ansible-role-nfs.git scm: git - src: https://github.com/PowerDNS/pdns_recursor-ansible.git +- src: ssh://git@git.ducamps.eu:2222/ansible-roles/ansible-role-samba.git + scm: git diff --git a/ansible/site.yml b/ansible/site.yml index 0c7ff71..8d10e81 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -1,4 +1,5 @@ --- +- import_playbook: playbooks/nas.yml - import_playbook: playbooks/sssd.yml - import_playbook: playbooks/wireguard.yml - import_playbook: playbooks/server.yml diff --git a/ansible/staging b/ansible/staging index 63843d3..9663b6f 100644 --- a/ansible/staging +++ b/ansible/staging @@ -25,8 +25,12 @@ homelab VPS staging +[NAS] +nas-dev + [staging] oscar-dev gerard-dev merlin-dev +nas-dev