diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-08-11 00:33:36 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-08-11 00:33:36 +0200 |
| commit | 0dea39c1622e19872d2a2884c22959901ab66838 (patch) | |
| tree | d53af1ba3deca02cb4d667caf27d48393ed32f26 | |
| parent | bd2cb308854a5ec9f438c0604a47a5eef6880d92 (diff) | |
Refactor configure role to use hostname instead of virtual group name
| -rw-r--r-- | roles/configure/tasks/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/configure/tasks/main.yml b/roles/configure/tasks/main.yml index 6a1e58c..040dec3 100644 --- a/roles/configure/tasks/main.yml +++ b/roles/configure/tasks/main.yml @@ -54,7 +54,7 @@ dest: "/opt/ansible-distro-configure/inventory/hosts.yml" mode: "0640" content: | - chroot: + {{ hostname }}: vars: ansible_user: "root" ansible_connection: "chroot" @@ -71,7 +71,7 @@ ansible.builtin.command: cmd: | ansible-playbook site.yml - --limit "chroot" + --limit "{{ hostname }}" --extra-vars '{"hostname":"{{ hostname }}"}' --extra-vars "@/opt/ansible-distro-configure/host_vars/{{ hostname }}.yml" --tags 'required_for_boot' |
