diff --git a/defaults/main.yml b/defaults/main.yml index 555b5ba..a778816 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -17,9 +17,6 @@ corenetworks_dns_pip: "pip{{ ansible_python.version.major }}" corenetworks_dns_delegate_to: localhost -# @ var corenetworks_dns_user:description: Has to be your ansible remote user. -corenetworks_dns_user: root - corenetworks_dns_python_packages: - corenetworks diff --git a/tasks/setup.yml b/tasks/setup.yml index b82bb2d..28f8756 100644 --- a/tasks/setup.yml +++ b/tasks/setup.yml @@ -6,8 +6,7 @@ extra_args: --user state: present loop: "{{ corenetworks_dns_python_packages }}" - become: True - become_user: "{{ corenetworks_dns_user }}" + delegate_to: "{{ corenetworks_dns_delegate_to }}" - name: Obtain an API token corenetworks_token: