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

Installation not idempotent #172

Open
devster31 opened this issue Nov 30, 2024 · 1 comment
Open

Installation not idempotent #172

devster31 opened this issue Nov 30, 2024 · 1 comment

Comments

@devster31
Copy link

Hello,
I'm running into a minor issue with the role, specifically when run twice in a row it still returns some changed tasks.
Some information below.

Control machine:

ansible [core 2.18.0]
  config file = /<user_home>/.ansible.cfg
  configured module search path = ['/<user_home>/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /<user_home>/code/infrastructure/dispenser/.venv/lib/python3.13/site-packages/ansible
  ansible collection location = /<user_home>/.ansible/collections:/usr/share/ansible/collections
  executable location = /<user_home>/code/infrastructure/dispenser/.venv/bin/ansible
  python version = 3.13.0 (main, Oct  7 2024, 05:02:14) [Clang 16.0.0 (clang-1600.0.26.4)] (/<user_home>/code/infrastructure/dispenser/.venv/bin/python3.13)
  jinja version = 3.1.4
  libyaml = True

Remote machine:

PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

Running the rclone fact file after first run:

$ /etc/ansible/facts.d/rclone.fact
{
    "configured": true,
    "installed": true,
    "installed_version": "1.68.2"
}

Specific tasks which are always flagged as changed:

TASK [stefangweichinger.ansible_rclone : Update repositories cache on Ubuntu] *********************************************************************************************************************
changed: [remote]

...

TASK [stefangweichinger.ansible_rclone : Remove temporary working directory] **********************************************************************************************************************
changed: [remote]

I believe this should not happen.

@stefangweichinger
Copy link
Owner

Thanks for reporting. Quite busy these days and ready for vacation ... so pls allow some delay before I can look into this closer.

As always: PRs welcome ;-)

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

2 participants