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

"The conditional check 'reg_enabled['stat isreg']' failed. The error was: error while evaluating conditional (reg_enabled['stat isreg']): 'dict object' has no attribute 'stat isreg' #35

Closed
DMTryptamines opened this issue Apr 9, 2022 · 0 comments

Comments

@DMTryptamines
Copy link
Contributor

DMTryptamines commented Apr 9, 2022

Was setting up a new instance and ran into this after running the ansible playbook.

fatal: [root@ip.ip.ip.ip]: FAILED! => {
    "msg": "The conditional check 'reg_enabled['stat isreg']' failed. The error was: error while evaluating conditional (reg_enabled['stat isreg']): 'dict object' has no attribute 'stat isreg'\n\nThe error appears to be in '/home/ubuntu/lemmy-ansible/lemmy.yml': line 80, column 9, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n      - name: remove if regular file (legacy) instead of symlink\n        ^ here\n"
}

The issue is exactly where it says it is and changing when: reg_enabled.stat.isreg to when: reg_enabled in lemmy.yml fixes the problem and let's the install finish. Doesn't appear to be any issues with changing......so far.

DMTryptamines added a commit to DMTryptamines/lemmy-ansible-dual-frontend-jae-prom that referenced this issue Apr 10, 2022
dessalines pushed a commit that referenced this issue Apr 12, 2022
* Update lemmy.yml

#35

* Update lemmy.yml

Tested it with reg_enabled.stat.exists and reg_enabled.stat.isreg and can confirm it completed a fresh install just fine!
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