I'm using the following Playbook, which is taken the IP Address Entered from the Jenkins Pipeline:
--- - name: Running Appened To Ansible Host File Playbook hosts: localhost connection: local tasks: - name: Adding The IP Address of the Newly Created Server to Ansible Host File blockinfile: path: /etc/ansible/hosts block: | [win] "{{ ip }}" [win:vars] ansible_user="{{ service }}" ansible_password="{{ service_pass}}" ansible_connection=winrm ansible_winrm_transport=credssp ansible_winrm_server_cert_validation=ignore -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3af699c5-544b-4251-afee-2594ca969abc%40googlegroups.com.