retrace: add env suffix

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"}
This commit is contained in:
Miroslav Suchý 2020-03-26 20:00:40 +01:00 committed by Pierre-Yves Chibon
parent 096bb905d9
commit 018a4f1b82

View file

@ -25,17 +25,17 @@
dest=/etc/fedora-messaging/faf/{{ item.dest }} dest=/etc/fedora-messaging/faf/{{ item.dest }}
owner={{ item.owner }} group=root mode={{ item.mode }} owner={{ item.owner }} group=root mode={{ item.mode }}
loop: loop:
- { src: "{{private}}/files/rabbitmq/{{env}}/pki/ca.crt", - { src: "{{private}}/files/rabbitmq/{{env}}/pki/ca{{env_suffix}}.crt",
dest: "ca.crt", dest: "ca.crt",
owner: faf, owner: faf,
mode: 0644 mode: 0644
} }
- { src: "{{private}}/files/rabbitmq/{{env}}/pki/private/faf.key", - { src: "{{private}}/files/rabbitmq/{{env}}/pki/private/faf{{env_suffix}}.key",
dest: "faf.key", dest: "faf.key",
owner: faf, owner: faf,
mode: "600" mode: "600"
} }
- { src: "{{private}}/files/rabbitmq/{{env}}/pki/issued/faf.crt", - { src: "{{private}}/files/rabbitmq/{{env}}/pki/issued/faf{{env_suffix}}.crt",
dest: "faf.crt", dest: "faf.crt",
owner: faf, owner: faf,
mode: 0644 mode: 0644