Ignore errors when cleaning up packages after removed releases -- the
releases might already be gone when cleanup-packages is run.
See also 9f64d9661 and c2ed129aa.
* Fix line folding syntax. The previous version caused vertical
whitespace to be included in the output which broke the crontab.
* Rename clean up job so that it doesn't contain any variables.
Including variables in a name makes it difficult to remove or change
the job when the variable changes.
* Code style consistency.
The management of groups is opaque to me right now and it seems
modifying the GID in this case might be useless or even harmful
so let's drop it for now.
We need to stop and restart the httpd service when modifying the retrace
user, otherwise we get errors like "user retrace is currently used by
process <PID>".
Also, factor out some magic values into role variables.
The job was broken before because the backup directory
(`/srv/faf/db-backup`) might not have existed.
Also, factor out some magic values into variables.
* Drop the `not devel` flag on FAF repository management tasks.
* Ignore errors when deleting repositories -- they might be gone already
when repodel is run.
addressing:
TASK [abrt/retrace : Get last subuid entry] *****************************************************************************
Monday 30 March 2020 07:15:43 +0000 (0:00:00.831) 0:05:45.873 **********
fatal: [retrace-stg.aws.fedoraproject.org]: FAILED! => {"msg": "The conditional check '\"retrace\" not in retrace_subgid.stdout' failed. The error was: error while evaluating conditional (\"retrace\" not in retrace_subgid.stdout): Unable to look up a name or access an attribute in template string ({% if \"retrace\" not in retrace_subgid.stdout %} True {% else %} False {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'AnsibleUndefined' is not iterable\n\nThe error appears to be in '/srv/web/infra/ansible/roles/abrt/retrace/tasks/podman.yml': line 23, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n - name: Get last subuid entry\n ^ here\n"}
https://pagure.io/fedora-infrastructure/issue/8780
addressing:
TASK [abrt/faf-pre : install certs for fedora-messaging] ****************************************************************
Wednesday 25 March 2020 16:47:16 +0000 (0:00:00.799) 0:05:10.000 *******
changed: [retrace-stg.aws.fedoraproject.org] => (item={u'dest': u'ca.crt', u'src': u'/srv/private/ansible/files/rabbitmq/staging/pki/ca.crt', u'mode': 420, u'owner': u'faf'})
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
failed: [retrace-stg.aws.fedoraproject.org] (item={u'dest': u'faf.key', u'src': u'/srv/private/ansible/files/rabbitmq/staging/pki/private/faf.key', u'mode': u'600', u'owner': u'faf'}) => {"ansible_loop_var": "item", "changed": false, "item": {"dest": "faf.key", "mode": "600", "owner": "faf", "src": "/srv/private/ansible/files/rabbitmq/staging/pki/private/faf.key"}, "msg": "Could not find or access '/srv/private/ansible/files/rabbitmq/staging/pki/private/faf.key' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
failed: [retrace-stg.aws.fedoraproject.org] (item={u'dest': u'faf.crt', u'src': u'/srv/private/ansible/files/rabbitmq/staging/pki/issued/faf.crt', u'mode': 420, u'owner': u'faf'}) => {"ansible_loop_var": "item", "changed": false, "item": {"dest": "faf.crt", "mode": 420, "owner": "faf", "src": "/srv/private/ansible/files/rabbitmq/staging/pki/issued/faf.crt"}, "msg": "Could not find or access '/srv/private/ansible/files/rabbitmq/staging/pki/issued/faf.crt' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}