Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo Leute,

ich habe leider mal wieder ein Problem mit ansible.
Ich möchte mit dem rsync Modul etwas von einem server auf meinen kopieren.
Das Playbook dazu sieht wie folgt aus:

---
- hosts: all
  become: no
  gather_facts: yes
  tasks:
    - name: pull backup
      synchronize:
        mode: pull
        src: /xxx/xxx/xxx
        dest: /yyy/yyy/yyy/
        use_ssh_args: yes
        rsync_path: "sudo rsync"

Die Hostdatei so:

[all]
server_1 ansible_host=192.168.178.102 ansible_connection=ssh ansible_ssh_pass=xxx ansible_sudo_pass=yyy

Ich weiß, vor einigen Wochen hatte ich dieses Modul für ein anderes Problem erfolgreich genutzt, habe hier auch nichts angepasst.
Jetzt kommt jedoch folgende Fehlermeldung:
 

FAILED! => {"changed": false, "cmd": "sshpass -d4 /usr/bin/rsync --delay-updates -F --compress --archive --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -C -o ControlMaster=auto -o ControlPersist=60s --rsync-path=sudo rsync --out-format=<<CHANGED>>%i %n%L 192.168.178.102:/home/osboxes/unifi/unifibackup /xxx/xxx/xxx/", "msg": "Warning: Permanently added '192.168.178.102' (ECDSA) to the list of known hosts.\r\nsudo: rsync: Befehl nicht gefunden\nrsync: connection unexpectedly closed (0 bytes received so far) [Receiver]\nrsync error: error in rsync protocol data stream (code 12) at io.c(226) [Receiver=3.1.3]\n", "rc": 12}


Hat jemand eine Ahnung was ich da machen kann, um diesen Fehler zu beheben? 
Der server_1 von dem ich die Datei kopieren möchte, ist so eingestellt, dass kein sudo passwort benötigt wird um sudo auszuführen.
Ansible Version ist die 2.9.17 und Python Version 3.6.8

 

Bearbeitet von deRoOx

Gelöst von charmanta

Zur Lösung

Oh man.... ich Idiot 🤣
Danke :D

Gast
Dieses Thema ist für weitere Antworten geschlossen.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.