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

check_mode of community.general.pacemaker_cluster module #8062

Closed
1 task done
nagatakiman opened this issue Mar 6, 2024 · 3 comments · Fixed by #8081
Closed
1 task done

check_mode of community.general.pacemaker_cluster module #8062

nagatakiman opened this issue Mar 6, 2024 · 3 comments · Fixed by #8081
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type)

Comments

@nagatakiman
Copy link

Summary

I created a playbook to set the cluster state to online or offline using the community.general.pacemaker_cluster module. Even if you run ansible-playbook with the "--check" option, it will be ignored and the cluster state will change.

Is this a bug? Please let me know if there is a workaround.

Issue Type

Bug Report

Component Name

community.general.pacemaker_cluster module

Ansible Version

$ ansible --version
ansible [core 2.15.9]

python3.9

Community.general Version

$ ansible-galaxy collection list community.general
community.general 7.5.2

Configuration

$ ansible-config dump --only-changed
CONFIG_FILE() = None

OS / Environment

control node:RHEL8
target node:RHEL9

Steps to Reproduce

- name: Set cluster
  hosts: target1
  become: true
  gather_facts: false
  tasks:
    - name: Set cluster no.1
      community.general.pacemaker_cluster:
        state: offline

Expected Results

When I run it with the --check option while online, I thought it would remain online, but it changed to offline.

Actual Results

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

cc @matbu
click here for bot help

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module plugins plugin (any type) labels Mar 6, 2024
@felixfontein
Copy link
Collaborator

That's clearly a bug, and a dangerous one. There's no workaround other than "do not use this module in check mode" :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants