Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Configure cups: failed to validate #6

@strarsis

Description

@strarsis

Describe the bug

The Configure cups task fails with: failed to validate

Playbook

---
--
- name: Additional features
  hosts: web:&{{ env }}
  become: yes
  roles:
    - { role: robertdebock.cups, tags: [printer] }

Output

TASK [robertdebock.cups : Configure cups] **************************************
fatal: [staging-2.localdomain]: FAILED! => {"changed": false, "checksum": "4bcc5dff4c0183708e300b6c69624ddbdb203991", "exit_status": 1, "msg": "failed to validate", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
fatal: [staging-2.localdomain]: FAILED! => {
    "changed": false,
    "checksum": "4bcc5dff4c0183708e300b6c69624ddbdb203991",
    "diff": [],
    "exit_status": 1,
    "invocation": {
        "module_args": {
            "_original_basename": "cupsd.conf.j2",
            "attributes": null,
            "backup": false,
            "checksum": "4bcc5dff4c0183708e300b6c69624ddbdb203991",
            "content": null,
            "dest": "/etc/cups/cupsd.conf",
            "directory_mode": null,
            "follow": false,
            "force": true,
            "group": null,
            "local_follow": null,
            "mode": "0640",
            "owner": null,
            "remote_src": null,
            "selevel": null,
            "serole": null,
            "setype": null,
            "seuser": null,
            "src": "/home/admin/.ansible/tmp/ansible-tmp-1695691360.9995403-26245-83999800941144/source",
            "unsafe_writes": false,
            "validate": "cupsd -t -c %s"
        }
    },
    "msg": "failed to validate",
    "stderr": "",
    "stderr_lines": [],
    "stdout": "",
    "stdout_lines": []
}

Environment

  • Control node OS: Ubuntu 22.04.3 LTS
  • Control node Ansible version: ansible [core 2.15.0]
  • Managed node OS: Ubuntu 20.04.5 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions