On 18.01.2018 13:00, Vincent Andrews wrote:
> Thanks for your help Kai, the error has move on! Do you think its down
> to
> spacing?
Sorry I didn't bay attention to the whole file.
But yes, you are missing 2 spaces in front of all the task.
And you need to remove the dash in front of tasks.
>
> # ansible-playbook --syntax-check pamd.yml
> *ERROR! 'pamd' is not a valid attribute for a Play*
- hosts: all
tasks:
- name: Insert new rule for pam_tally2.so
pamd:
name: system-auth
type: auth
control: required
module_path: pam_env.so
new_type: auth
new_control: required
module_arguments: ‘deny=3 unlock_time=180’
new_module_path: pam_tally2.so
state: before
- name: Insert new rule for pam_cracklib.so
pamd:
name: system-auth
--
Kai Stian Olstad