qadevel.qa.fedoraproject.org uses port 222 for ssh shell access. ansible is happy using port 222 just fine, but rdiff-backup isn't. It uses port 22 by default, and fails. The following patch should fix this issue. +1s? I would apply this, run the backup playbook and then watch tomorrow's backups to confirm they work. If not we could revert this. kevin -- diff --git a/playbooks/rdiff-backup.yml b/playbooks/rdiff-backup.yml index 9accda6..fd9dec7 100644 --- a/playbooks/rdiff-backup.yml +++ b/playbooks/rdiff-backup.yml @@ -20,11 +20,11 @@ tasks: - name: run rdiff-backup hitting all the global targets - local_action: "shell rdiff-backup --create-full-path --print-statistics {{ inventory_hostname }}::{{ item }} /fedora_backups/{{ inventory_hostname }}/`basename {{ item }}` | mail -r sysadmin-backup-members@xxxxxxxxxxxxxxxxx -s 'rdiff-backup: {{ inventory_hostname }}:{{ item }}' sysadmin-backup-members@xxxxxxxxxxxxxxxxx" + local_action: "shell rdiff-backup --remote-schema 'ssh -p {{ ansible_ssh_port }} -C %s rdiff-backup --server' --create-full-path --print-statistics {{ inventory_hostname }}::{{ item }} /fedora_backups/{{ inventory_hostname }}/`basename {{ item }}` | mail -r sysadmin-backup-members@xxxxxxxxxxxxxxxxx -s 'rdiff-backup: {{ inventory_hostname }}:{{ item }}' sysadmin-backup-members@xxxxxxxxxxxxxxxxx" with_items: global_backup_targets when: global_backup_targets is defined - name: run rdiff-backup hitting all the host targets - local_action: "shell rdiff-backup --exclude='**git-seed*' --exclude='**git_seed' --exclude='**.snapshot' --create-full-path --print-statistics {{ inventory_hostname }}::{{ item }} /fedora_backups/{{ inventory_hostname }}/`basename {{ item }}` | mail -r sysadmin-backup-members@xxxxxxxxxxxxxxxxx -s 'rdiff-backup: {{ inventory_hostname }}:{{ item }}' sysadmin-backup-members@xxxxxxxxxxxxxxxxx" + local_action: "shell rdiff-backup --remote-schema 'ssh -p {{ ansible_ssh_port }} -C %s rdiff-backup --server' --exclude='**git-seed*' --exclude='**git_seed' --exclude='**.snapshot' --create-full-path --print-statistics {{ inventory_hostname }}::{{ item }} /fedora_backups/{{ inventory_hostname }}/`basename {{ item }}` | mail -r sysadmin-backup-members@xxxxxxxxxxxxxxxxx -s 'rdiff-backup: {{ inventory_hostname }}:{{ item }}' sysadmin-backup-members@xxxxxxxxxxxxxxxxx" with_items: host_backup_targets when: host_backup_targets is defined
Attachment:
pgp4X08qzdadu.pgp
Description: OpenPGP digital signature
_______________________________________________ infrastructure mailing list infrastructure@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/infrastructure