Fix some 'issues' raised by ansible-lint

This commit is contained in:
Mark Goddard 2017-09-10 19:27:43 +01:00
parent 188e58bc94
commit 2529d207ed
5 changed files with 11 additions and 6 deletions

View File

@ -78,7 +78,8 @@
sort }} sort }}
# Register the new flavors. # Register the new flavors.
- include_role: - name: Include the stackhpc.os-flavors role
include_role:
role: stackhpc.os-flavors role: stackhpc.os-flavors
os_flavors_venv: "{{ venv }}" os_flavors_venv: "{{ venv }}"
os_flavors_auth_type: "{{ openstack_auth_type }}" os_flavors_auth_type: "{{ openstack_auth_type }}"

View File

@ -1,5 +1,6 @@
--- ---
- include_vars: "{{ ansible_os_family }}.yml" - name: Include OS family-specific variables
include_vars: "{{ ansible_os_family }}.yml"
- name: Ensure required packages are installed - name: Ensure required packages are installed
package: package:

View File

@ -7,10 +7,12 @@
changed_when: False changed_when: False
register: ip_allocation_os_release register: ip_allocation_os_release
- include_vars: "RedHat.yml" - name: Include RedHat family-specific variables
include_vars: "RedHat.yml"
when: ip_allocation_os_release.stdout in ['centos', 'fedora', 'rhel'] when: ip_allocation_os_release.stdout in ['centos', 'fedora', 'rhel']
- include_vars: "Debian.yml" - name: Include Debian family-specific variables
include_vars: "Debian.yml"
when: ip_allocation_os_release.stdout in ['debian', 'ubuntu'] when: ip_allocation_os_release.stdout in ['debian', 'ubuntu']
# Note: Currently we install these using the system package manager rather than # Note: Currently we install these using the system package manager rather than

View File

@ -1,5 +1,6 @@
--- ---
- include_vars: "{{ ansible_os_family }}.yml" - name: Include OS family-specific variables
include_vars: "{{ ansible_os_family }}.yml"
- name: Ensure EPEL repo is installed - name: Ensure EPEL repo is installed
yum: yum: