Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Ansible config errors #165

Open
noname380 opened this issue Mar 11, 2022 · 2 comments
Open

Ansible config errors #165

noname380 opened this issue Mar 11, 2022 · 2 comments

Comments

@noname380
Copy link

noname380 commented Mar 11, 2022

I've got some debian servers and trying to deploy ansible, got these errors:
ansible all -m ping -u root -i hosts ERROR! Invalid play strategy specified: linear ; default

`ansible-playbook -u root deploy.yaml -i hosts
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/user/uashield/tools/ansible/roles/uashield/tasks/main.yml: line 29, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  • ansible.builtin.debug:
    ^ here`

Even when commented this:
`ansible-playbook -u root deploy.yaml -i hosts

PLAY [servers] ********************************************************************************************************************************************************
ERROR! Invalid play strategy specified: linear ; default

The error appears to have been in '/home/user/uashield/tools/ansible/deploy.yaml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


  • hosts: servers
    ^ here`

My hosts file:
cat hosts [servers] 192.168.8.10 192.168.8.32 192.168.8.35 192.168.8.36 192.168.8.37 192.168.8.38 192.168.8.219 192.168.8.225 192.168.8.233 192.168.8.236 192.168.8.241 192.168.8.220
all linked with SSH keys

@dmpanch
Copy link
Contributor

dmpanch commented Mar 13, 2022

Just deployed a few servers from master, can't reproduce.

@denysbutenko
Copy link
Contributor

It should be fixed in #170

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants