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

15 views
Skip to first unread message

Sureenart Kietsaroch

unread,
Jun 25, 2020, 3:13:43 AM6/25/20
to ansible...@googlegroups.com

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

 

 

 

Luca 'remix_tj' Lorenzetto

unread,
Jun 25, 2020, 7:28:50 AM6/25/20
to ansible...@googlegroups.com
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

--
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.


--
"E' assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)
 
Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , <lorenze...@gmail.com>

Sureenart Kietsaroch

unread,
Jun 25, 2020, 11:02:56 PM6/25/20
to ansible...@googlegroups.com, lorenze...@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

Luca 'remix_tj' Lorenzetto

unread,
Jun 26, 2020, 4:02:34 AM6/26/20
to Sureenart Kietsaroch, ansible...@googlegroups.com
Hello,

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

Luca
Reply all
Reply to author
Forward
0 new messages