# \[AWX tower\] Error when use synchronize which inventory from satellite6

**URL:** <https://forum.ansible.com/t/awx-tower-error-when-use-synchronize-which-inventory-from-satellite6/33258>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [June 25, 2020, 7:13am UTC](https://forum.ansible.com/t/awx-tower-error-when-use-synchronize-which-inventory-from-satellite6/33258 "2020-06-25T07:13:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sureenart\_Kietsaroch](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@Sureenart\_Kietsaroch](https://forum.ansible.com/u/Sureenart_Kietsaroch)\
**Post date:** [June 25, 2020, 7:13am UTC](https://forum.ansible.com/t/awx-tower-error-when-use-synchronize-which-inventory-from-satellite6/33258/1 "2020-06-25T07:13:22Z")

</div>

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

 ![](https://us1.discourse-cdn.com/ansible/original/2X/c/c832c1d06c397e2a10a4edde5f1dc18e0c8d2c9a.jpeg)

---

<div class="post-metadata">

**Author:** ![Luca\_remix\_tj\_Lorenz](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@Luca\_remix\_tj\_Lorenz](https://forum.ansible.com/u/Luca_remix_tj_Lorenz)\
**Post date:** [June 25, 2020, 11:28am UTC](https://forum.ansible.com/t/awx-tower-error-when-use-synchronize-which-inventory-from-satellite6/33258/2 "2020-06-25T11:28:19Z")

</div>

Hello,

I don’t understand at all your request.

Please post the full playbook since the task you’ve reported is not using any foreman variable.

Luca

> **(attachments)**
>
> ![image001.jpg](https://us1.discourse-cdn.com/ansible/original/2X/c/c832c1d06c397e2a10a4edde5f1dc18e0c8d2c9a.jpeg)

---

<div class="post-metadata">

**Author:** ![Sureenart\_Kietsaroch](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@Sureenart\_Kietsaroch](https://forum.ansible.com/u/Sureenart_Kietsaroch)\
**Post date:** [June 26, 2020, 3:02am UTC](https://forum.ansible.com/t/awx-tower-error-when-use-synchronize-which-inventory-from-satellite6/33258/3 "2020-06-26T03:02:31Z")

</div>

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

> **(attachments)**
>
> ![image001.jpg](https://us1.discourse-cdn.com/ansible/original/2X/c/c832c1d06c397e2a10a4edde5f1dc18e0c8d2c9a.jpeg)

---

<div class="post-metadata">

**Author:** ![Luca\_remix\_tj\_Lorenz](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@Luca\_remix\_tj\_Lorenz](https://forum.ansible.com/u/Luca_remix_tj_Lorenz)\
**Post date:** [June 26, 2020, 8:02am UTC](https://forum.ansible.com/t/awx-tower-error-when-use-synchronize-which-inventory-from-satellite6/33258/4 "2020-06-26T08:02:02Z")

</div>

Hello,

no idea. Could you please run the playbook with more verbosity?

Luca

> **(attachments)**
>
> ![image001.jpg](https://us1.discourse-cdn.com/ansible/original/2X/c/c832c1d06c397e2a10a4edde5f1dc18e0c8d2c9a.jpeg)
