I get this error when executing my playbook.  I need to reboot the machine 
but cannot get around this insane error that is preventing me from doing 
so.. the plybook works until I add the last line for reboot.  Can anyone 
tell me what is wrong here please???  Thanks in advance.  

**** ERROR SECTION*****

ERROR! no action detected in task. This often indicates a misspelled module 
name, or incorrect module path.

The error appears to have been in 
'/home/kmarty/ansible/roles/basic/tasks/main.yml': line 53, column 3, but 
may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: Reboot Machine
  ^ here


The error appears to have been in 
'/home/kmarty/ansible/roles/basic/tasks/main.yml': line 53, column 3, but 
may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: Reboot Machine
  ^ here

exception type: <class 'ansible.errors.AnsibleParserError'>
exception: no action detected in task. This often indicates a misspelled 
module name, or incorrect module path.

The error appears to have been in 
'/home/kmarty/ansible/roles/basic/tasks/main.yml': line 53, column 3, but 
may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: Reboot Machine
  ^ here

**** PLAYBOOK******


#Ansible Configuration Playbook for On-Premise Installs
#Created by: Kirk Marty [email protected]
#Version 1.0 
#Date: 3/31/2020

- name: "Required Software Packages that will be utilized - yum installs"
  yum: pkg={{ item }} state=installed
  with_items:
  - nano
  - vim
  - tar
  - xz
  - unzip
  - wget
  - curl
  - bind-utils
  - net-tools
  - ntp
  - epel-release

# Update the system to latest patches and applications via yum

- name: "update the Centos Server 7 with latest patches and applications"
  yum:
    name: "*"
    state: latest

- name: be sure firewalld is installed
  yum: name=firewalld state=installed
  tags:
   - install
   - firewalld
 
- name: be sure firewalld is disabled
  systemd: name=firewalld enabled=no
  tags:
   - install
   - atomic
   - firewalld

- name: be sure firewalld is stopped
  systemd: name=firewalld state=stopped
  ignore_errors: yes
  tags:
   - install
   - atomic
   - firewalld

- name: Disable SELinux
  selinux:
    state: disabled

- name: Reboot Server to apply some changes and updates
  reboot:

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8ef94b84-40cd-4105-857b-f82a6787d89a%40googlegroups.com.

Reply via email to