ea1a1dee0d
This patchset implements yamllint test to all *.yml files. Also fixes syntax errors to make jobs to pass. Change-Id: I3186adf9835b4d0cada272d156b17d1bc9c2b799
27 lines
726 B
YAML
27 lines
726 B
YAML
---
|
|
- name: Install package python-os-xenapi
|
|
package:
|
|
name: python-os-xenapi
|
|
state: present
|
|
become: True
|
|
|
|
- name: Ensure XenAPI root path
|
|
file:
|
|
path: "{{ xenapi_facts_root }}"
|
|
state: directory
|
|
mode: "0770"
|
|
become: True
|
|
|
|
- name: Bootstrap XenAPI compute node
|
|
vars:
|
|
xenapi_facts_path: "{{ xenapi_facts_root + '/' + xenapi_facts_file }}"
|
|
command: xenapi_bootstrap -i {{ xenserver_himn_ip }} -u {{ xenserver_username }} -p {{ xenserver_password }} -f {{ xenapi_facts_path }}
|
|
become: True
|
|
|
|
- name: Fetching XenAPI facts file
|
|
fetch:
|
|
src: "{{ xenapi_facts_root + '/' + xenapi_facts_file }}"
|
|
dest: "{{ xenapi_facts_root + '/' + inventory_hostname + '/' }}"
|
|
flat: yes
|
|
become: True
|