Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors with ansible 2.7 #4

Open
tbludau opened this issue Jul 25, 2019 · 0 comments
Open

errors with ansible 2.7 #4

tbludau opened this issue Jul 25, 2019 · 0 comments

Comments

@tbludau
Copy link
Member

tbludau commented Jul 25, 2019

I got this error while deploying with ansible 2.7.

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/ansible/redhat-hana/ansible/playbooks/subscribe-rhn/tasks/main.yml': line 57, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  • name: Set fix osrelease to "{{ reg_osrelease }}"
    ^ 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 }}"

After I set the lines as a commet the deployment process stopped here in the tasks.yml with the following error: fatal: [dc2hana01.example.com]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (rhsm_repository) module: purge Supported parameters include: name, state"}

  • name: 'repository setup for ansible >= 2.5'
    rhsm_repository:
    name: "{{ repositories }}"
    purge: "{{ repo_reset }}"
    state: enabled
    when:
    • ansible_version.major == 2
    • ansible_version.minor >= 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant