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

Constraint task doesn't have 'pre' and 'post' tasks #13

Open
jmmpelto opened this issue May 13, 2019 · 0 comments
Open

Constraint task doesn't have 'pre' and 'post' tasks #13

jmmpelto opened this issue May 13, 2019 · 0 comments

Comments

@jmmpelto
Copy link

Hi! If, in a playbook, I first say tasks_from: group, it works perfectly. However, if I, after that, in another task, say tasks_from: constraint, it fails, e.g.: "The target XML source '/tmp/ansible.Vme64f.xml' does not exist." The 'post' task included in group.yml removes the temporary config file, whereas constraint.yml doesn't include the pre.yml (or post.yml) files. And if I run the 'constraint' task first, I get the error that 'pcmk_config' is undefined, which it is, since it never gets defined. Suggested solution: add include_tasks: pre.yml and include_tasks: post.yml to the constraint.yml file, as it is in group.yml, resource.yml and advanced_resource.yml.

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