diff --git a/playbooks/init.yml b/playbooks/init.yml index 68f738f..a6bc2b7 100644 --- a/playbooks/init.yml +++ b/playbooks/init.yml @@ -13,7 +13,7 @@ private_ip: true region: "{{ vps_service.region }}" root_pass: "{{ vps_service.password }}" - tags: "{{ hostvars[inventory_hostname].keywords }}" + tags: "{{ keywords }}" state: "{{ 'present' if vps_service.exists else 'absent' }}" tags: - vps_step