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

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

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)

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)

Hello,

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

Luca

(attachments)