[ansible-project] Automating Software Installation (issues using win_shell module)

2018-01-31 Thread MA
Hello, I'm trying to automate the installation of Visual Studio, and I am using the unattended installation command provided by Microsoft: vs_community.exe --installPath C:\minVS --add Microsoft.VisualStudio.Workload.CoreEditor --quiet --norestart Running this command from the target machine d

[ansible-project] Re: Connection to windows target host timeout

2018-01-11 Thread MA
Hi, I'm still facing the same error, I've defined my host in my host_vars as follows: ansible_host: xxx.xxx.xx.xx ansible_user: vagrant ansible_password: vagrant ansible_port: 5985 ansible_connection: winrm ansible_winrm_server_cert_validation: ignore I've also defined my environment variable

[ansible-project] "must be string or read-only buffer, not None" error

2018-01-11 Thread MA
Can anyone tell me what this error means? win1 | UNREACHABLE! => { "changed": false, "msg": "plaintext: must be string or read-only buffer, not None", "unreachable": true } thanks -- You received this message because you are subscribed to the Google Groups "Ansible Project" group

[ansible-project] ERROR! must be string or read-only buffer, not None

2018-01-10 Thread MA
can anyone tell me why I'm getting this error? I can't seem to find an answer online win1 | UNREACHABLE! => { "changed": false, "msg": "plaintext: ", "unreachable": true } __ *host_vars:* ansible_user: xxx ansible_password: xxx

[ansible-project] Re: Connection to windows target host timeout

2018-01-04 Thread MA
Hi, I haven't. what's been shown in the message is my proxy, I didn't quite understand why its being shown as an error though. Regards MA On Thursday, January 4, 2018 at 10:12:59 PM UTC, Jordan Borean wrote: > > Have you set up the WinRM listener with a custom port, usual

[ansible-project] Connection to windows target host timeout

2018-01-04 Thread MA
I'm trying to win_ping a windows host to verify a connection but I keep getting the timeout error bellow: windows1 | UNREACHABLE! => { "changed": false, "msg": "plaintext: HTTPConnectionPool(host='xx.xx.xx.xx', port=3128): Read timed out. (read timeout=30)", "unreachable": true } I

Re: [ansible-project] elb_target_group module no longer in use?

2017-07-20 Thread Trevor Ma
Thank you for the quick reply. It is much appreciated On Thursday, July 20, 2017 at 12:50:52 PM UTC-7, branko wrote: > > On Thu, 20 Jul 2017 08:48:48 -0700 (PDT) > Trevor Ma > wrote: > > > Hi I'm new here and have been doing some ansible. I need to register > &g

[ansible-project] elb_target_group module no longer in use?

2017-07-20 Thread Trevor Ma
Hi I'm new here and have been doing some ansible. I need to register an instance to a target group and ansible is great as it has a module for it. However, nothing I do works. The funny thing is that the module reference page for it doesn't even exist anymore. Does that just mean the module is

[ansible-project] Ansible to display system inventory information

2016-03-04 Thread Hongjun Ma
I have python module collect single system inventory info using print statement and I'd like to use Ansible to collect the same information against all inventory hosts. I know Ansible doesn't like custom module to do print and I can return some JSON fields using module.exit_json call. I can reg

[ansible-project] Re: ansible 1.9.4 task reported failed from running custom python module

2016-02-24 Thread Hongjun Ma
i figured out the issue. I added some print statements during python module troubleshooting and looks Ansible didn't like that. I commented out the print statements and ansible is happy now. On Wednesday, February 24, 2016 at 10:35:25 AM UTC-8, Hongjun Ma wrote: > > Hello, my

[ansible-project] ansible 1.9.4 task reported failed from running custom python module

2016-02-24 Thread Hongjun Ma
Hello, my own python module returned the following failure when running from ansible. {"msg": "Created profile", "changed": true, "ansible_facts": {"serial_number": .. "created": true}} FATAL: all hosts have already failed -- aborting PLAY RECAP *

[ansible-project] Ansible 1.9.4 localhost ansible_python_interpreter breaks playbook run

2016-02-19 Thread Hongjun Ma
I have a playbook and I want to change python path from default /user/bin/python to /user/local/bin/python(on MAC book and brew installed latest 2.7.11 on /user/local/bin). I setup the hosts file and add a localhost entry and set ansible_python_interpreter there but after that, I can see my pyt

[ansible-project] Ansible ping get FAILED => SSH Error: Permission denied

2016-01-22 Thread Hongjun Ma
I'm getting permission error on basic ansible ping command. I verified ssh to remote hostname and ip address so the ssh host key is not an issue. Using CentOS7.0 If I cut/paste ssh command in ansible debug, the output will indicate I don't have access privilege to control path under /root. I wo

[ansible-project] Re: core.cloud.openstack Error Fetching Image List

2015-12-15 Thread Hugh Ma
Perfect thanks. -- 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 post to this group, send email to ansible-pr

[ansible-project] Re: hosts per role?

2015-12-14 Thread Hugh Ma
I'm not sure I understand what it is your trying to do here... If you are trying to have some hosts execute another group's role, you can use *includes*. Otherwise, if you can explain why you are nesting *group3/4 *under *roles* when you have *group1* set as *hosts*. On Monday, December 14, 20

[ansible-project] Re: Ansible or Salt?

2015-12-14 Thread Hugh Ma
I actually just transitioned from saltstack to ansible a few weeks ago. For me ansible's playbook structure is much easier to grasp than salt. Everything is clearly defined, you know exactly what hosts, perform what roles, and which variables are associated. Speed wise, ansible's transportation

[ansible-project] Re: core.cloud.openstack Error Fetching Image List

2015-12-14 Thread Hugh Ma
>>> glanceclient.__version__ '1.2.0' >>> print requests.__version__ 2.2.1 On Friday, December 11, 2015 at 9:08:53 AM UTC-8, David Shrewsbury wrote: > > What version of python-glanceclient and requests do you have installed? > > > -- You received this message because you are subscribed to the Go

[ansible-project] Re: core.cloud.openstack Error Fetching Image List

2015-12-10 Thread Hugh Ma
This is from the inventory script. Everything is fine until it hits glance to pull the image object. Couldn't construct image object Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/shade/openstackcloud.py", line 254, in _get_client **kwargs) File "/usr/lo

[ansible-project] core.cloud.openstack Error Fetching Image List

2015-12-10 Thread Hugh Ma
Running into an issue on 2.0 rc2 and latest dev version (2.1) TASK [common : launch a compute instance] ** task path: /home/cluser/automata_ansible/automata_ansible_openstack/openstack/roles/common/tasks/main.yml:2 ESTABLISH LOCAL CONNECTION FOR USER: root loc

[ansible-project] Steps to insert data into a database

2015-12-01 Thread Hugh Ma
Currently the playbook runs a task which generates a result file in /tmp/result.out Then it runs a parsing python script I put in common/files/parser.py and passes /tmp/result.out to the script as a parameter. The script prints to STDOUT the parsed results in a JSON format as such { "elapsed