Re: [ansible-project] How to run a task on a specific host which is not part of the hosts scope for the playbook?

2017-07-07 Thread Rasmus Sjørslev
I had ventured down that path but it failed with an SSL error that it could not verify. But you had me look at this again and i found: https://github.com/ansible/ansible/issues/18066 once i defined this entry in my hosts file: localhost ansible_winrm_server_cert_validation=ignore and added

Re: [ansible-project] How to run a task on a specific host which is not part of the hosts scope for the playbook?

2017-07-06 Thread Kai Stian Olstad
On 06. juli 2017 11:49, Rasmus Sjørslev wrote: how (if possible) can i run a task using eg. win_shell against a specific host that takes a variable from the overall playbook it is being initialised from? I have tried an - include: dns_changes.yml hosts: windows_server vars: ip: "{{

[ansible-project] How to run a task on a specific host which is not part of the hosts scope for the playbook?

2017-07-06 Thread Rasmus Sjørslev
What i am trying to achieve: I have a playbook that provisions some virtual machines by running a role: --- - hosts: localhost gather_facts: false connection: local vars_files: - vm_data.yml roles: - { role: common } ... the common role logs into phpIPAM and gets some subnet