Open misilot opened 8 months ago
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:
state:
- code: 16
name: "running"
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 :(
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