Hi Team,
Need some help to develop an action plugin script using two modules. Below
is my ansible playbook code:
- name: Ensure packages are installed yum: name: -
xorg-x11-server* - dhcp - bind - vsftpd - dovecot
- samba - squid - net-snmp - ypserv - ypbind
- rsh - telnet-server - telnet state: absent async:
86400 #24 hours poll: 0 register: yum_installer - name: Waiting for yum
package installation to complete
async_status: jid={{ yum_installer.ansible_job_id }}
shell: nohup python /opt/ibm/si/saas/ansible/test_neha.py register:
console_job_results until: console_job_results.finished retries: 100
Here above in the second task, I am calling two ansible modules at once
(shell & async_status) which is giving me the error *ERROR! conflicting
action statements: shell, async_status*, so as an alternative I am now
trying to develop an action plugin, which can call two ansible modules at
once. Now here, async_status module will go on iteration till the job
finished, so on each iteration, I want to call the python script. Thats why
going with the approach of developing action plugin.
Need some help regarding the same
Thanks & Regards
Neha Singh
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/a1a7143d-f34c-47cf-bbd0-28020b64d2d7n%40googlegroups.com.