diff --git a/README.md b/README.md index a5b04a9..438e7e5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # Ansible Collection -Opinionated set of roles to configure reasonable defaults for newly provisioned Debian / Ubuntu VMs running Docker. The repository provides a ready-to-use Ansible Collection (`studio.ansible`) containing reusable roles. +Opinionated set of roles to configure reasonable defaults for newly provisioned Debian / Ubuntu VMs running Docker. The repository provides: +- An Ansible Collection (`studio.ansible`) containing reusable roles. Use with ansible-galaxy's `requirements.yml`. +- A ready-to-use playbook configured by passing CLI vars `--extra-vars "ansible_host=${HOST_IP}` e.g. through CI / CD. diff --git a/inventory/hosts.ini b/inventory/hosts.ini new file mode 100644 index 0000000..e10a37d --- /dev/null +++ b/inventory/hosts.ini @@ -0,0 +1,5 @@ +[target] +target_host ansible_host="{{ ansible_host }}" + +[all:vars] +ansible_user="{{ ansible_user }}" diff --git a/playbooks/setup.yml b/playbooks/setup.yml new file mode 100644 index 0000000..1be62d1 --- /dev/null +++ b/playbooks/setup.yml @@ -0,0 +1,11 @@ +--- +- name: Setup machines + hosts: all + become: true + + roles: + - base + - users + - security + - docker + # - backup