Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write usage documentation #5

Open
arBmind opened this issue May 2, 2016 · 2 comments
Open

Write usage documentation #5

arBmind opened this issue May 2, 2016 · 2 comments

Comments

@arBmind
Copy link
Member

arBmind commented May 2, 2016

This role set is quite verbose.
Please write some common usage examples.

@arBmind
Copy link
Member Author

arBmind commented May 2, 2016

#1 might contain a good reference

@andrzejwp
Copy link
Contributor

Unfortunately #1 is incomplete, the minimum to run it is

- role: domain/create
    libvirt_domain_name: "example"
    libvirt_ssh_port: 37331
    libvirt_domain_groups: ['example']
    libvirt_base_image: "{{ ansible_local.libvirt.facts.ubuntu_cloud_image_path }}"

after previously sucessfully applying the images/ubuntu-cloud role.

Complete working playbook:

- hosts: libvirt-server
  sudo: true

  roles:

  - role: images/ubuntu-cloud
    libvirt_images_ubuntu_cloud_image_url: "https://cloud-images.ubuntu.com/trusty/20160119/trusty-server-cloudimg-amd64-disk1.img"
  - role: domain/list
  - role: domain/create
    libvirt_domain_name: "example"
    libvirt_ssh_port: 37331
    libvirt_domain_groups: ['example']
    libvirt_base_image: "{{ ansible_local.libvirt.facts.ubuntu_cloud_image_path }}"

Also, please beware of the groups syntax issue, fixed in pr #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants