Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Trouble with Debian Stretch #2

@ejprice

Description

@ejprice

Hi there!

I'm trying to run this on Debian Stretch which is a bit newer than Centos 7 and Ubuntu 16.04. I'm getting some errors:

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

The error appears to have been in '/etc/ansible/roles/geerlingguy.apache/tasks/main.yml': line 16, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

# Setup/install tasks.
- include_tasks: "setup-{{ ansible_os_family }}.yml"
  ^ here
We could be wrong, but this one looks like it might be an issue with
missing quotes.  Always quote template expression brackets when they
start a value. For instance:

    with_items:
      - {{ foo }}

Should be written as:

    with_items:
      - "{{ foo }}"


The error appears to have been in '/etc/ansible/roles/geerlingguy.apache/tasks/main.yml': line 16, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

# Setup/install tasks.
- include_tasks: "setup-{{ ansible_os_family }}.yml"
  ^ here
We could be wrong, but this one looks like it might be an issue with
missing quotes.  Always quote template expression brackets when they
start a value. For instance:

    with_items:
      - {{ foo }}

Should be written as:

    with_items:
      - "{{ foo }}"`

I suspect this has to do with the ansible version. On Debian Stretch it is ansible 2.2.1.0.

Any insights would be appreciated. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions