On 05.04.2017 18:55, Robert F wrote:
Here is the output when I run the playbook with the "-vvvv" argument:

<snip>

TASK: [rsync database backup file to database server]
*************************
<45.56.89.116> ESTABLISH CONNECTION FOR USER: smith

<snip>


On Monday, April 3, 2017 at 1:06:08 PM UTC-7, Robert F wrote:

When I run the following Ansible playbook on my backup server,
backups.example.com, I get the error shown below:

    # main.yml
    ---
    - name: restore database
      hosts: dbserver.example.com
      gather_facts: false

      vars:
        me: smith

      tasks:
      - command: rsync -vz /path/to/db.dump {{ me
}}@dbserver.example.com:/tmp
        become: true
        become_user: "{{ me }}"

You are logging in as user smith and do a sudo to user smith, why?
Can this be the root cause of the problem?

--
Kai Stian Olstad

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3613e735057d3ebdd2463d679c0c75c8%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to