install python deps
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-05-13 11:26:17 +02:00
parent c6094130c0
commit 629f16ab6b
2 changed files with 15 additions and 0 deletions

View File

@ -13,7 +13,12 @@
# @end
# @var corenetworks_dns_default_zone: $ "_unset_"
corenetworks_dns_pip: "pip{{ ansible_python.version.major }}"
corenetworks_dns_delegate_to: localhost
corenetworks_dns_user: "{{ ansible_remote_user }}"
corenetworks_dns_python_packages:
- corenetworks
# @var corenetworks_dns_default_zone:example: >
# corenetworks_dns_records:

View File

@ -1,4 +1,14 @@
---
- name: Install dependencies
pip:
name: "{{ item }}"
executable: "{{ corenetworks_dns_pip }}"
extra_args: --user
state: present
loop: "{{ corenetworks_dns_python_packages }}"
become: True
become_user: "{{ corenetworks_dns_user }}"
- name: Obtain an API token
corenetworks_token:
api_user: "{{ corenetworks_dns_api_user | default(omit) }}"