[ansible-project] Re: Anyone successfully use python to generate a password hash and pass it into a usable variable in a playbook?

2019-07-03 Thread Tony Chia
Have you tried using the password module to generate a random passwd? https://docs.ansible.com/ansible/latest/plugins/lookup/password.html On Tuesday, July 2, 2019 at 7:36:26 PM UTC-7, Paul Shulz wrote: > > Wondering if anyone has tried this or is ansible just > intentionally designed to to

[ansible-project] Re: Ansible - overwriting file lineinfile when run in parallel

2019-06-26 Thread Tony Chia
Since you are using local_action, it will execute on the ansible controller instead of remote host local_action is an alternative way of doing delegate_to: localhost. These actions will be executed on local machine (Ansible control host) I don't see how it would behave differently if you use

[ansible-project] Re: Ansible - To limit the execution for the range of hosts

2019-06-26 Thread Tony Chia
You can get the current executing ip addresses in the playbook using the magic variable inventory_hostname You can find more information at https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#magic-variables-and-how-to-access-information-about-other-hosts On Wednesday,

[ansible-project] Re: ERROR! Syntax Error while loading YAML. mapping values are not allowed in this context

2019-05-04 Thread Tony Chia
You can check if you have a valid syntax at http://www.yamllint.com/ In YAML, sequences must have a dash followed by a space. On Friday, May 3, 2019 at 2:38:51 AM UTC-7, op...@netexpress.de wrote: > > I have the following playbook: > --- > - hosts: debian > order: sorted > tasks: >

[ansible-project] Re: leftover on AMI after using Ansible with Packer

2019-05-04 Thread Tony Chia
That folder is a temporally folder used by ansible. See the following for more details https://docs.ansible.com/ansible/2.4/intro_configuration.html local_tmp New in version 2.1. When Ansible gets ready to send a module to

[ansible-project] Ansible & Windows Management

2019-04-22 Thread Tony Chia
To connect to windows from ansible you can use wintm instead of the default winrm connection type -- 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] Ansible & Windows Management

2019-04-22 Thread Tony Chia
You can connect using either ssh key or username / password -- 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] Ansible Vault string in a single line

2019-04-22 Thread Tony Chia
One solution is use ansible-vault to decrypt the file and export the variable and have Jenkins read from the env var -- 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

[ansible-project] How to make Ansible Tasks work with Packer

2019-04-04 Thread Tony Chia
There is no limitation which task can be run from packer. Try adding - when you execute from packer and from outside of packer and compare the results Regards Tony Chia -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To u

[ansible-project] Re: How to copy directory from remote machine to ansible machine

2019-04-03 Thread Tony Chia
If you don't want the complete path, you can set "flat: yes" in the fetch task and it will flatten the directory for you. --Tony On Wednesday, April 3, 2019 at 4:08:42 AM UTC-7, amit ahuja wrote: > > Hi, > > i want to know if there is any way to copy complete directory from remote >

[ansible-project] Re: Unable to install local package with win_chocolatey

2019-03-30 Thread Tony Chia
if you can get it to work to rule out permission issue but I suspect you will run into similar issue. For more information on Privilege Escalation, see https://docs.ansible.com/ansible/latest/user_guide/become.html --Tony Chia On Friday, March 29, 2019 at 1:32:34 PM UTC-7, gigi...@gmail.com

[ansible-project] Defning cloudwatch metric alarm which uses metric math using ansible ec2_metric_alarm

2019-02-28 Thread Tony Chia
Maybe try using terraform ? I find the terraform module for aws is usually more update than ansible’s aws module Regards Tony -- 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

[ansible-project] Filter hosts matching groups

2019-01-22 Thread Tony Chia
Try this in your playbook hosts: linux::_x -- 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

[ansible-project] Re: Ansible vault -- "ERROR! playbooks must be a list of plays"

2019-01-17 Thread Tony Chia
It's a lot easier if you just encrypt the value and not the whole file so you can find where a variable is defined. For example ansible-vault encrypt_string --vault-id dev@password 'fdev' --name 'the_dev_secret' Result: the_dev_secret: !vault | $ANSIBLE_VAULT;1.2;AES256;dev

[ansible-project] Ansible parallel block execution

2019-01-16 Thread Tony Chia
You can try adding —fork some-large-number to your ansible playbook command to force it execute in parallel -- 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

[ansible-project] Re: 'ERROR!' Telnet 'is not a valid attribute to play

2019-01-09 Thread Tony Chia
I believe you need to have two spaces indentation for the telnet task On Wednesday, January 9, 2019 at 3:29:49 AM UTC-8, Eduardo Nunes Pereira wrote: > > Hi, > > First of all thanks for the answers, below is my playbook and then the > error message. > > > ## Playbook > > - name: Coletct

[ansible-project] Re: How to randomize hosts but not repeat the ones that already were selected

2019-01-09 Thread Tony Chia
Are you trying to run the playbook on a list of randomized hosts except the first and 2nd host? Maybe you can try - hosts: "{{ (groups['all'] | shuffle)[2:] }}" See the following for more details https://docs.ansible.com/ansible/latest/user_guide/intro_patterns.html On Wednesday, January 9,

[ansible-project] Re: Convert ps elapsed time format for long running processes

2019-01-09 Thread Tony Chia
This is not really an ansible question but rather a linux shell question. You can get the elapsed time in seconds using this one line shell command $ ps -p 50 -o etime= | sed 's/[:-]/ /g;' | awk '{print $4" " $3" " $2" " $1" " }'| awk '{print $1+$2*60+$3*3600+$4*86400}' 685608 On Wednesday,

[ansible-project] Re: UNREACHABLE! => {"changed": false, "msg": "Authentication or permission failure.

2018-12-21 Thread Tony Chia
Since you are the karol user, why do you have to elevate the privilege by adding sudo before ansible-playbook only to downgrade it to karol with -u and then upgrade to root with --become? Why can't you just run ansible-playbook -i hosts playbook.yml without the "sudo", "-u karol" or

[ansible-project] Re: Syntax error while running Firewall playbook

2018-12-19 Thread Tony Chia
Hi Prashant, It looks like your "with_items" is not lined up correctly with firewalld so the list is not passed to {{item.port}} i.e. try this - name: Enable TCP and UDP ports firewalld: port: '{{item.port}}/{{item.protocol}}' immediate: true permanent: true

[ansible-project] Re: Syntax error while running Firewall playbook

2018-12-19 Thread Tony Chia
Try using double quote instead of single quote around {{item.port}} On Wednesday, December 19, 2018 at 10:41:41 PM UTC-8, Prashant Jaiswal wrote: > > Hi, > > While running a playbook to enable multiple TCP & UDP ports on a remote > m/c I am getting some syntax error which I can't figure it

[ansible-project] Re: Using variable in "hosts" definition

2018-12-18 Thread Tony Chia
Why does your 'playbook' doesn't have "hosts"? Why does your 'role' have "hosts:"? On Monday, December 17, 2018 at 1:43:54 AM UTC-8, Ilya Ulis wrote: > > I have a role with the following yaml: > [root@ansible playbooks]# head -n 4 roles/upgrade_couchbase/tasks/main.yml > - hosts:

[ansible-project] AWS Dynamic Inventory ec2.py cache doesn't work?

2018-12-13 Thread Tony Chia
You can probably reduce some time by setting the region that expect your resource to be in and one or note tags in the ex2.ini 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

[ansible-project] Inventory folder structure verification

2018-12-13 Thread Tony Chia
That is expected. If you don’t specify -i how the ansible-playbook know you want to run against production or staging or test env ? You could probably set some defaults using the inventory setting under defaults section in ansible.cfg. For example

Re: [ansible-project] Accessing variables in yaml file

2018-11-29 Thread Tony Chia
If the variables you want to share between plays is static it’s more straight forward to use and group_vars file. The group_vars file doesn’t have to be inside the inventory folder. It can be in a group_vars folder on the same level as your playbook -- You received this message because you

[ansible-project] Re: can we use Ansible to deploy applications to linux

2018-11-28 Thread Tony Chia
If you need to copy some files to the remote server, you can use the copy module https://docs.ansible.com/ansible/2.6/modules/copy_module.html If you need to make some configuration changes, you can use the template module https://docs.ansible.com/ansible/latest/modules/template_module.html

[ansible-project] Re: From RHEL not able to connect to windows VM

2018-11-28 Thread Tony Chia
By default ansible will use ssh connection which tries to connect to port 22 even if the target host is windows. In order to tell ansible to connect using winrm which uses port 5985(non-ssl)/5986(ssl), you have to add these variable/settings to your inventory file ansible_port: 5986

[ansible-project] Re: Ansible + jinja2 macro

2018-11-01 Thread Tony Chia
Have you tried this to see if it removes the extra ident? ... {{ logging('fluentd') }}

[ansible-project] Re: Ansible Vault - store credentials for all hosts in one vault file

2018-10-22 Thread Tony Chia
You can try to add "serial: 1" to your play in your playbook so if it fails to ssh to first host, it won't try to connect to the 2nd host. By default, it tries to connect 5 hosts at a time and usually that is enough to trigger the account to be locked. Regards, Tony Chia On Monda

[ansible-project] Re: Ansible Playbook error - Dict object has no attribute.

2018-10-22 Thread Tony Chia
It seems there is one level between account_config and stack. Maybe try account_config.xx.stacks instead? On Monday, October 22, 2018 at 5:17:31 AM UTC-7, Kishore Ponniah wrote: > > Hi, > > I am trying to create a Direct connect Gateway in AWS account using > ansible. I have the main

[ansible-project] Re: Getting Error while running playbook

2018-09-24 Thread Tony Chia
try adding this to your ansible.cfg host_key_checking=False HOST_KEY_CHECKING: default: true description: Set this to "False" if you want to avoid host key checking by the underlying tools Ansible uses to connect to the host env: - {name: ANSIBLE_HOST_KEY_CHECKING} ini: - {key:

[ansible-project] Re: cant execute bashfile using ansible

2018-09-24 Thread Tony Chia
.bat extension is for Windows batch file. Bash files typically have .sh or .bash extension. Could you show the tasks you have tried and their respective output ? On Monday, September 24, 2018 at 6:41:12 AM UTC-7, vowner wrote: > > Hi Experts, > > I am automating IBM CLM application and i

[ansible-project] Re: view remote shell script output to the controller node terminal screen

2018-09-06 Thread Tony Chia
If the log file is generated in the /tmp/ folder you can use the fetch command to copy the log back to the ansible controller and use whatever method you want to display the content (maybe shell module with cat command) An example of the fetch module is sohwn below - name: Copy

[ansible-project] Re: Roles calling

2018-09-06 Thread Tony Chia
roles typically doesn't have .yml extension. By default if a task within a role fails, ansible playbook will not execution. The 3 roles will be executed in sequence so b role will execute if a role is successful. On Wednesday, September 5, 2018 at 11:40:13 PM UTC-7, Abhijit Chakraborty

[ansible-project] Re: Create CI CD pipeline in Ansible

2018-09-06 Thread Tony Chia
You can use ansible tower's workflow to chain the dev job to the uat job and the production job. see https://docs.ansible.com/ansible-tower/latest/html/userguide/workflow_templates.html On Thursday, September 6, 2018 at 2:57:47 AM UTC-7, Pradeep Drall wrote: > > Hi, > I created CI CD pipeline

[ansible-project] Re: To list the target host's name and it's IP address using facts

2018-09-06 Thread Tony Chia
Assuming each host has only one ip address. how about this? # for linux # - name: display ansible_default_ipv4.address #debug: # var: ansible_default_ipv4.address # for windows - name: display ansible_ip_addresses debug: var: ansible_ip_addresses - name:

[ansible-project] Re: Getting security bad md5 certificate after running configureRemotingForAnsible.ps1

2018-08-15 Thread Tony Chia
Have you tried remove the self-signed certified that is generated from configureRemotingForAnsible.ps1 and try running it again? Tony On Tuesday, August 14, 2018 at 9:35:00 AM UTC-7, ssh...@starbucks.com wrote: > > Perhaps the script has changed but I ran it 8 months ago off the > ansibledoc

[ansible-project] Re: Editing inline encrypted variables?

2018-08-15 Thread Tony Chia
-vault-to-protect-sensitive-ansible-data-on-ubuntu-16-04 Tony Chia On Tuesday, August 14, 2018 at 10:35:01 AM UTC-7, Dick Visser wrote: > > Hi > > I've come to like the inline encrypted variable > ( > https://docs.ansible.com/ansible/latest/user_guide/playbooks_vault.htm

Re: [ansible-project] ansible.vault not working anymore?

2018-08-15 Thread Tony Chia
I would say a faster way is probably to setup a python virtualenv and see if you can reproduce the issue in the new clean virtual env. You can find instructions how to setup a python virutal env at https://docs.python-guide.org/dev/virtualenvs/ On Tuesday, August 14, 2018 at 11:40:04 AM UTC-7,

Re: [ansible-project] ansible.vault not working anymore?

2018-08-15 Thread Tony Chia
The current stable ansible version is 2.6.2 according to the github release page https://github.com/ansible/ansible/releases How did you get Ansible version 2.7.0? is the from the devel branch? On Tuesday, August 14, 2018 at 9:24:15 AM UTC-7, Vid Jelen wrote: > > My current python cryptography

[ansible-project] Re: Is it possible to pass SSH key contents as argument when running ansible-playbook

2018-08-15 Thread Tony Chia
you don't have to temporarily store the credential on disk which is using the paramikio_ssh connection. The documentation is located at https://docs.ansible.com/ansible/2.6/plugins/connection/paramiko_ssh.html Tony Chia On Wednesday, August 15, 2018 at 7:35:15 AM UTC-7, Bruce Affonso wrote

[ansible-project] Re: Can not able to ssh between two ec2 instances

2018-08-10 Thread Tony Chia
Please run the ssh command with - and display the output here On Friday, August 10, 2018 at 6:58:30 AM UTC-7, Kiran Sonawane wrote: > > Hey, > I'm trying to SSH between two instances to practice Ansible on aws > instances but I'm not able to create an ssh connection between instances. > Can

[ansible-project] Re: Connecting to YUM for Playbooks

2018-08-07 Thread Tony Chia
Your ansible controller host is probably using a different yum repository than dlw0008a which has the git package. Try ssh into dlw0008a and run "yum search git" and compare that with "yum search git" from the place you said "yum install git" is working. yum search samba On Tuesday, August

[ansible-project] Re: Connecting to YUM for Playbooks

2018-08-07 Thread Tony Chia
works > > > - rhn_channel: > name: rhel-x86_64-server-v2vwin-6 > sysname: server01 > url: https://rhn.redhat.com/rpc/api > user: rhnuser > password: guessme > delegate_to: localhost > > > Thanks! > > > On Tuesday, August 7, 2018 at 1

Re: [ansible-project] Re: Ansible slack callback plugin - not working - please help

2018-08-07 Thread Tony Chia
The error message says HTTP Error 403: Forbidden Are you able to use the same credential, webhook_url, etc using curl or any other tool outside of ansible? I suspect your haven't configured your slack channel properly On Thursday, July 26, 2018 at 2:56:44 AM UTC-7, Vinod Kumar wrote: > > Hi

[ansible-project] Re: Parallel Tasks Execution in Ansible

2018-08-07 Thread Tony Chia
Have you tried either one of the following? 1) adding tag to each yaml include file? Actually change the include to import_task and add a tag so you can run each yaml file using --tag with ansible-playbook i.e instead of - include: a.yml - include: b.yml Do this - import_tasks: a.yml

[ansible-project] Re: Connecting to YUM for Playbooks

2018-08-07 Thread Tony Chia
Are you able to run "sudo yum install git -y" ? Maybe the repo that you are using doesn't really have the git package. On Tuesday, August 7, 2018 at 6:51:24 AM UTC-7, Ros Ko wrote: > > Newbie question. I am trying to connect to yum to install packages but I > cannot. The servers are registered

[ansible-project] Re: powershell: not found

2018-05-24 Thread Tony Chia
Without looking at your playbook and your inventory it's hard to say. However I will throw an educated guess that you are running the ping linux module which using a winrm connection. If your target host is really linux and you want to run ping then switch your connection to ssh or paramiko.

[ansible-project] Re: Ansible GUI Tools

2018-05-21 Thread Tony Chia
Hi Carlton, You can use either the commerical Ansible Tower or the opensource version called AWX at github.com/ansible/awx if you need a GUI interface. On Sunday, May 20, 2018 at 12:37:25 PM UTC-7, Carlton Patterson wrote: > > Hello community, > > I am learning Ansible and I am getting familiar

[ansible-project] Re: terminating instances

2018-05-11 Thread Tony Chia
It seems the "when" for the ec2 task is not lined up. "when" should be indented at the same level as ec2 task similar to the debug task On Thursday, May 10, 2018 at 2:27:06 PM UTC-7, David Villasmil wrote: > > hello all, > > I run "ec2_instance_facts" to get some instance_ids: > > -

[ansible-project] Re: Unable to Launch Job Template in Ansible Tower

2018-05-11 Thread Tony Chia
It appears the search button is search for a key not a job since the "key" button is next to the magnifying glass. Also on the top you have the Azure credential selected. What are you trying to do? Are you trying to search a particular job you created before? Are you trying to search a

[ansible-project] Re: Unable to use 'yum install'

2018-05-10 Thread Tony Chia
Maybe try adding "disable_gpg_check: true" to the "install kuberlet" task? On Thursday, May 10, 2018 at 10:12:58 AM UTC-7, Fabio Gomes Sakiyama wrote: > > Hi Nick, thanks for helping! > > the curl executed fine, I didn't mention but my environment is running on > google cloud. > If I enter

[ansible-project] Re: Variable disappears...

2018-05-08 Thread Tony Chia
Is the "replace" task in the same play as the "set_fact" play? It's best if you could provide a reproducible full playbook. You can add debug task between where it's defined and the "replace" task to see when it starts to "disappears" On Tuesday, May 8, 2018 at 8:04:03 AM UTC-7, David

[ansible-project] Re: What is recommended version???

2018-05-08 Thread Tony Chia
2.5.x is the latest stable version. It is not a dev version. It's best to use the latest version when starting out On Tuesday, May 8, 2018 at 1:34:45 AM UTC-7, java_cat33 wrote: > > Hi - I'm completely new to Ansible (and not too familiar with Linux). What > is the recommended Ansible version?

[ansible-project] Re: Why playbook take wrong values for group variables?

2018-05-01 Thread Tony Chia
Do you have the following files defined? /group_vars/group_A.yml /group_vars/group_B.yml /group_vars/all.yml /inventories/group_vars/all.yml also, maybe try using "hosts: *group_B" in *playbooks/playbook.yml instead of "hosts:*all"* On Sunday, April 29, 2018 at 1:39:59 AM UTC-7, Олег Боровых

[ansible-project] How to use the same dictionary to loop over two tasks? is it possible using block?

2018-04-11 Thread Tony Chia
I.e. instead of doing this which does win_iis_website,win_iis_website,etc then win_iis_webbinding,win_iis_webbinding, etc - name: Create IIS site win_iis_website: name: '{{ item.key }}' state: started application_pool: '{{

[ansible-project] What are the best practices for adding and removing users/groups to /etc/security/pam_winbind.conf?

2018-03-27 Thread Tony Chia
in particular I am looking to manage the require_membership_of field in /etc/security/pam_winbind.conf through ansible. # make successful authentication dependend on membership of one SID # (can also take a name) require_membership_of = user1,group1 -- You received this message because you

[ansible-project] Re: Hide secrets from output

2018-03-24 Thread Tony Chia
You can use a custom callback plugin to mask the password. An example can be found at https://serverfault.com/questions/754860/how-can-i-reduce-the-verbosity-of-certain-ansible-tasks-to-not-leak-passwords-in/897480#897480?newreg=03468dbbc6174dbc9d04455112ec29a7 On Saturday, March 24, 2018

[ansible-project] How to exclude a module in ansible 2.5?

2018-03-24 Thread Tony Chia
In the ansible 2.5 changelog, it mentioned the following - Added a configuration file that a site administrator can use to specify modules to exclude from being used. However when I search for the word "exclude" on https://docs.ansible.com/ansible/devel/reference_appendices/config.html,

Re: [ansible-project] Re: Ansible 2.5.0 Final is available

2018-03-24 Thread Tony Chia
Thank you Kai. I found the new documentation by searching "ansible new-module-name" On Friday, March 23, 2018 at 3:22:16 PM UTC-7, Kai Stian Olstad wrote: > > On Friday, 23 March 2018 22.46.29 CET Tony Chia wrote: > > According to the changlog, the followi

[ansible-project] Re: Ansible 2.5.0 Final is available

2018-03-23 Thread Tony Chia
According to the changlog, the following new windows modules are available win_audit_policy_system win_audit_rule win_certificate_store win_disk_facts win_product_facts win_scheduled_task_stat win_whoami However, when I go to http://docs.ansible.com/ansible/latest/list_of_windows_modules.html ,

[ansible-project] Is there an ansible module to make changes to the Local Group Policy editor (gpedit.msc) on windows?

2018-03-22 Thread Tony Chia
I see something similar called the "win_security_policy" but I couldn't follow the example in the documentation. For example, if i want to add an user called svc_foounder the following Computer Configure => Windows Settings => Security Settings => Local Policies => User Rights Assignment =>

[ansible-project] Is there custom ansible module registry somewhere similar to galaxy.ansible.com for ansible role?

2018-03-15 Thread Tony Chia
I was wondering if anyone know a place similar to galaxy.ansible.com where I can find custom ansible modules that people have written that is not part of the ansible core or extra modules. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group.

[ansible-project] Re: Ansible windows issue about running yml task

2018-03-14 Thread Tony Chia
do you have "tasks:" defined before your win_file? try this - hosts: all tasks: - name: Create directory structure win_file: path: C:\Temp\folder\subfolder state: directory On Wednesday, March 14, 2018 at 4:35:40 AM UTC-7, selim sarısu wrote: > > Hi Friends , > > When I tried

[ansible-project] Re: must be stored as a dictionary/hash

2018-03-09 Thread Tony Chia
what is the content of your aws_keys.txt ? Normally the file used with the include statement has .yml extension. Not sure if that makes any difference On Friday, March 9, 2018 at 2:29:12 PM UTC-8, sanjanith reddy wrote: > > Hi All, > I'm trying to launch an EC2 instance via a playbook. My

[ansible-project] Re: Ansible Playbook running for longtime/indefinitely for windows 2012 R2 Ansible Playbook

2018-03-08 Thread Tony Chia
Here are two things you can try Try putting the win_ping module in a task in a playbook and run it. Try adding -v (5 v for winrm connection debug info) to ansible-playbook On Wednesday, March 7, 2018 at 11:32:51 PM UTC-8, Namasivayam C wrote: > > > I am new to Ansible and I'm trying to

[ansible-project] Re: Having trouble copying registered result to local file.

2018-03-06 Thread Tony Chia
It's unclear which task the error is coming from. Next time please include more log messages On Tuesday, March 6, 2018 at 2:55:16 AM UTC-8, Marcos Georgopoulos wrote: > > ok, I managed to solve this, there was a problem with my install. > > On Tuesday, March 6, 2018 at 3:24:17 PM UTC+11, Marcos

[ansible-project] Re: How to run "sudo command" as ssh user without switching to become_user?

2018-03-01 Thread Tony Chia
Try adding this to your /etc/sudoers file so you don't get prompted some_userALL=(ALL) NOPASSWD: ALL On Thursday, March 1, 2018 at 1:57:32 PM UTC-8, Kevin wrote: > > Hi, > I'm connecting to my host as "user1" and my become user name is "user2". > The only account that has sudo

[ansible-project] Re: unable to ping windows machine using ansible

2018-02-18 Thread Tony Chia
What happends when you run "telnet 192.168.1.102" on the ansible controller box? On the windows box, did you run the script ConfigureRemotingForAnsible.ps1 which you can obtain from here https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 On Sunday,

[ansible-project] Re: Issue with running Ansible playbook against windows.

2017-12-15 Thread Tony Chia
=HTTPS On Friday, December 15, 2017 at 11:31:14 AM UTC-8, Tony Chia wrote: > > Try running "ConfigureRemotingForAnsible.ps1" on the windows host you are > trying to manage with Ansible. > If that doesn't work try this command on the ansible host > > telnet windows-host-nam

[ansible-project] Re: Issue with running Ansible playbook against windows.

2017-12-15 Thread Tony Chia
Try running "ConfigureRemotingForAnsible.ps1" on the windows host you are trying to manage with Ansible. If that doesn't work try this command on the ansible host telnet windows-host-name 5985 telnet windows-host-name 5986 If you see "Trying ..." but times out, the maybe the network ACL is not

[ansible-project] How to make -vvvv the default for ansible-playbook in ansible.cfg

2017-12-08 Thread Tony Chia
I read through the document at http://docs.ansible.com/ansible/latest/intro_configuration.html, and I didn't find any setting that can make - the default if ansible-playbook is ran outout -. For example, ansible-playbook has --user=REMOTE_USER on the command line and the equivalent