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

Play claiming no actions are listed in task list. #5

Open
oCroson opened this issue Jun 30, 2023 · 0 comments
Open

Play claiming no actions are listed in task list. #5

oCroson opened this issue Jun 30, 2023 · 0 comments

Comments

@oCroson
Copy link

oCroson commented Jun 30, 2023

Describe the bug

Role assumes there is no task/action being performed, there is obviously several actions that need to be taken and it is reading the tasks file well enough to see but i digress.

Playbook

---
- name: converge
  hosts: localhost
  become: yes
  become_method: sudo
  gather_facts: yes

  roles:
    - role: ~/github/ansible-role-nextcloud
      nextcloud_apps:
        - name: richdocumentscode
      nextcloud_settings:
        - name: max_chunk_size
          section: files
          value: 0
---
roles:
  - name: robertdebock.bootstrap
  - name: robertdebock.buildtools
  - name: robertdebock.core_dependencies
  - name: robertdebock.cron
  - name: robertdebock.epel
  - name: robertdebock.httpd
  - name: robertdebock.mysql
  - name: robertdebock.openssl
  - name: robertdebock.php
  - name: robertdebock.php_fpm
  - name: robertdebock.python_pip
  - name: robertdebock.redis
  - name: robertdebock.remi
  - name: robertdebock.selinux
collections:
  - name: ansible.posix
  - name: community.crypto
  - name: community.mysql

Output

tim@tim:~/github/ansible-role-nextcloud$ sudo ansible-playbook playbook.yml --ask-become-pass
SUDO password:
[WARNING]: provided hosts list is empty, only localhost is available. Note
that the implicit localhost does not match 'all'

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/tim/github/ansible-role-nextcloud/tasks/main.yml': line 4, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  • name: Import assert.yml
    ^ here

Environment

  • Control node OS: Ubuntu 18.04 LTS
  • Control node Ansible version: 2.5.1
  • Managed node OS: Ubuntu 18.04 LTS
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