[ansible-project] Ansible Asynchronous actions

2022-03-16 Thread Dip Giri
- name: Check if database import is complete async_status: jid: "{{ output.ansible_job_id }}" register: job_result until: job_result.finished delay: 10 retries: 25920 no_log: true [image: Screenshot from 2022-03-17 12-07-44.png] How to hide FAILED - RETRYING logs from async_status -- You receiv

Re: [ansible-project] how to execute playbook task on Host-B directly from control machine

2022-03-13 Thread Dip Giri
Thank you sir, But i have another question - How to give private key and there passphrase in this case ansible_ssh_common_args='-o ProxyCommand="ssh -p -W %h:%p -q usern...@bastion.example.com"' On Sun, Mar 13, 2022 at 5:32 PM Stefan Hornburg (Racke) wrote: > O

[ansible-project] Ansible private key passphrase

2022-03-13 Thread Dip Giri
How to use private key passphrase in ansible inventory file -- 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-project+unsubscr...@googlegroups.com. To

[ansible-project] how to execute playbook task on Host-B directly from control machine

2022-03-12 Thread Dip Giri
First i have to connect *Host-A* then i can connect *Host-B*. i can’t connect Host-B directly. So in this case how to execute playbook task on *Host-B *from *Control Machine. *Because my control machine is centralised where have running *Ansible AWX. * and i can't install ansible on Host-A beca

[ansible-project] Get memory info using Ansible

2022-02-08 Thread Dip Giri
Whatever ansible give a memory info in ansible_fact it doesn't match with memory info that we get from *free -m *command. Why this problem happened for that if have any solution plz give me --- - name: Setup server hosts: localhost tasks: - name: test shell: free -m register: xyz - name: Pri

[ansible-project] Ansible command output

2021-12-27 Thread Dip Giri
- *name*: start ping *shell*: ping google.com i want to show live output of ping command when i execute the playbook. How to do it? If anyone have any idea plz replay -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from

[ansible-project] I want to execute nohup command on remote host using ansible but it didn't work

2021-11-15 Thread Dip Giri
--- - name: Application setup hosts: aws gather_facts: no tasks: - name: Start application shell: nohup mvn spring-boot:run -Drun.jvmArguments="-Xmx1024m" & args: chdir: /home/dipak *I want to execute nohup command on remote host using ansible but it didn't wo