Skip to content

Fix lint issues #10

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

Merged
merged 1 commit into from
Feb 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
regexp: '^unix_sock_dir ='
line: unix_sock_dir = "{{ libvirt_host_socket_dir }}"
become: true
when: libvirt_host_socket_dir != ""
when: libvirt_host_socket_dir | length > 0
notify: restart libvirt

- name: Create directory for libvirt socket
Expand All @@ -19,7 +19,7 @@
group: root
mode: 0755
become: true
when: libvirt_host_socket_dir != ""
when: libvirt_host_socket_dir | length > 0

- name: Process lineinfile rules
lineinfile: "{{ rule.args }}"
Expand Down
12 changes: 10 additions & 2 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,21 @@

- name: Ensure libvirt packages are installed
package:
name: "{{ item }}"
name: "{{ libvirt_host_libvirt_packages }}"
state: installed
with_items: "{{ libvirt_host_libvirt_packages }}"
register: result
until: result is success
retries: 3
become: True

# NOTE: QEMU emulators are available in EPEL.
- name: Ensure the EPEL repository is enabled
yum:
name: epel-release
state: installed
register: result
until: result is success
retries: 3
become: True
when:
- ansible_os_family == "RedHat"
Expand All @@ -34,6 +39,9 @@
name: "{{ package }}"
state: installed
with_items: "{{ libvirt_host_qemu_emulators }}"
register: result
until: result is success
retries: 3
become: True
vars:
package: "qemu-system-{{ item }}"
2 changes: 1 addition & 1 deletion tasks/prelude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- name: gather os specific variables
include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version}}.yml"
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
- "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}.yml"
tags: vars