-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fails when installing packages #391
Comments
another place I needed to adjust re: the virtualenv step above. I just deleted everything in the virtualenv directory, figuring Ansible will recreate it |
Sorry, we should use a different variable name, instead "state" In your inventory or playbooks you have defined:
And when calling the following, it is not using the default value (latest) That's the reason because it fails to you and it works for us. We are going to change that variable name, and set less generic one. |
Hmm, I can't find anything in my inventory or playbook that defines: "state", "16" or "running" |
Ok, so I found it. It looks like it's coming from the aws_ec2 inventory plugin we use https://docs.ansible.com/ansible/latest/collections/amazon/aws/aws_ec2_inventory.html or more specifically the awscli https://github.com/aws/aws-cli/blob/develop/awscli/examples/lightsail/get-instance.rst you can see the state variable defined as an example :( |
… overriding if needed Fixes artefactual-labs#391
This task is failing when trying to install with the following task https://github.com/artefactual-labs/ansible-archivematica-src/blob/stable/1.15.x/tasks/install-packages.yml#L8-L13
This is on Ubuntu 22.04LTS
TASK [artefactual.archivematica-src : Install/Upgrade Debian packages: Ansible dependencies] *************************************************************************************************************************
For some reason the status is getting {'code': 16, 'name': 'running'} instead of another value.
Is state defined somewhere else? I tried greping but did not see it.
Adding
state: latest
to https://github.com/artefactual-labs/ansible-archivematica-src/blob/stable/1.15.x/tasks/main.yml#L122-L128 seemed to have fixed it at least for us locally.Also had to add it to this file https://github.com/artefactual-labs/ansible-archivematica-src/blob/stable/1.15.x/tasks/ss-osdeps.yml#L66-L75
Now stuck on this step
The text was updated successfully, but these errors were encountered: