RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2015704 - ERROR! couldn't resolve module/action 'selinux'
Summary: ERROR! couldn't resolve module/action 'selinux'
Keywords:
Status: CLOSED DUPLICATE of bug 2006076
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: rhel-system-roles
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Rich Megginson
QA Contact: CS System Management SST QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-19 21:49 UTC by Dalibor Pospíšil
Modified: 2021-10-19 22:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-19 22:17:44 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-100292 0 None None None 2021-10-19 21:51:32 UTC

Description Dalibor Pospíšil 2021-10-19 21:49:45 UTC
Description of problem:
I get following error with this playbook:

# cat > inventory.ini <<EOF
[servers]
server ansible_host=123.45.67.89
[clients]
client ansible_host=123.45.67.98
EOF

# cat > playbook.yaml <<EOF
- name: server tcp
  hosts: servers
  roles:
    - rhel-system-roles.selinux
    - rhel-system-roles.logging
  vars:
    selinux_ports:
      - ports: "{{ _port }}"
        proto: tcp
        setype: syslogd_port_t
        state: present
    logging_inputs:
      - name: system_input
        type: basics
      - name: remote_input
        type: remote
        tcp_ports: [ "{{ _port }}" ]
    logging_outputs:
      - name: files_output
        type: files
    logging_flows:
      - name: flows
        inputs: [system_input, remote_input]
        outputs: [files_output]
- name: client tcp
  hosts: clients
  roles:
    - rhel-system-roles.selinux
    - rhel-system-roles.logging
  vars:
    selinux_ports:
      - ports: "{{ _port }}"
        proto: tcp
        setype: syslogd_port_t
        state: present
    logging_inputs:
        - name: system_input
          type: basics
    logging_outputs:
        - name: files_output
          type: files
        - name: forward_output
          type: forwards
          facility: local2
          target: 123.45.67.89
          tcp_port: "{{ _port }}"
    logging_flows:
        - name: flows
          inputs: [system_input]
          outputs: [files_output, forward_output]
EOF

# ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i inventory.ini playbook.yaml --extra-vars '_port=50514'
ERROR! couldn't resolve module/action 'selinux'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/usr/share/ansible/roles/rhel-system-roles.selinux/tasks/main.yml': line 31, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: Set permanent SELinux state if enabled
  ^ here



Version-Release number of selected component (if applicable):
rhel-system-roles-1.8.3-2.el9
ansible-core-2.11.3-4.el9_b


How reproducible:
100%

Comment 1 Rich Megginson 2021-10-19 22:17:44 UTC

*** This bug has been marked as a duplicate of bug 2006076 ***


Note You need to log in before you can comment on or make changes to this bug.