This commit is contained in:
parent
c6094130c0
commit
629f16ab6b
@ -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:
|
||||
|
@ -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) }}"
|
||||
|
Reference in New Issue
Block a user