Hi All,
Could you advice when use synchronize which inventory from satellite6 ?
I found error shown as below picture.
- name: sync script to server for '{{ folder_db }}'
synchronize:
src: '{{ script_dir }}'
dest: '{{ work_dir }}'
rsync_opts:
- "--verbose"
- "--progress"
- "--stats"
mode: push
recursive: yes
delegate_to: 10.x.x.x

--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5341f4774b665b195bf910d0bc28ca75%40mail.gmail.com.
Hi Luca,
This is my full playbook as below.
This case error occurred after I use ansible version 2.9.10 before use ansible version 2.9.4 it’s work as properly.
- hosts: "{{ server }}"
gather_facts: yes
tasks:
- name: SetFact
set_fact:
jenkins_ip: "{{ hostvars['server_hostname']['ansible_default_ipv4']['address'] }}"
- name: sync db script to server
synchronize:
src: “/home/test”
dest: "/home/test"
rsync_opts:
- "--verbose"
- "--progress"
- "--stats"
mode: push
recursive: yes
delegate_to: "{{ jenkins_ip }}"
ERROR
fatal: [server]: FAILED! => {"msg": "'foreman' is undefined"}
Remark: Inventory from satellite, We not used foreman parameter anymore but error shown foreman is undefined.
Thanks,
Mie
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAKuX69rvyJxsTTxQw_YBvY%2Bf6CUBYsDPMv0dNujWG9mPGzhDWw%40mail.gmail.com.