diff --git a/tasks/cleanup.yml b/tasks/cleanup.yml index 3316c1ad030b8edc40612bc099d02e76f556765d..12c3399edf62265d7403154fd7b6d93f484ddacf 100644 --- a/tasks/cleanup.yml +++ b/tasks/cleanup.yml @@ -14,7 +14,7 @@ dest=/etc/hosts regexp='{{ item }}' state=absent - sudo: yes + become: yes with_items: - '^{{ static_ipv4|default(False) }} ' - '.*{{ host }}$'