Skip if we don't have special things to do, and pass right values for EL6 service changes

This commit is contained in:
Jason Rothstein 2020-01-01 23:02:58 -06:00
parent fbaefe40e3
commit 758f0b2d54
3 changed files with 5 additions and 2 deletions

View File

@ -14,7 +14,7 @@
name: '{{ item.name }}'
state: '{{ item.state }}'
loop:
- { enables: 'yes', name: 'acpid', state: 'started' }
- { enabled: 'yes', name: 'acpid', state: 'started' }
loop_control:
label: '{{ item.name }} will be {{ item.state }}'

2
tasks/default.yml Normal file
View File

@ -0,0 +1,2 @@
---
# tasks file for ensure_ansible_prereq

View File

@ -7,6 +7,7 @@
file: '{{ lookup("first_found", findme ) }}'
vars:
findme:
errors: 'ignore'
files:
- '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}.yml'
- '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-default.yml'
@ -15,5 +16,5 @@
- '{{ ansible_os_family }}-{{ ansible_distribution_major_version }}-default.yml'
- '{{ ansible_os_family }}-default.yml'
- 'default.yml'
errors: 'ignore'
skip: 'true'