[ansible-project] Re: Install Docker on Windows Server 2016 using win_shell module

2017-07-24 Thread 'J Hawkesworth' via Ansible Project
Hi, I am curious if you got any further with this. I looked at the link above but couldn't see any powershell command like you show to install docker. It looks like there is a .msi installer now, which I would hope could be installed using the win_package module. The .msi installer is

Re: [ansible-project] Re: playbook fails testing connection from loadbalancer (nginix) to 2 backend webhosts (apache2)

2017-07-24 Thread benno joy
from what i see {{ item.item }} would expand to 'AnsibleWeb' when the content actually has "ip-172-31-24-83!" hence it fails. so i think the condition would be when: "'Hello, from sunny {{hostvars[item.item][ansible_hostname]}}!' not in item.content" you might need a play to collect facts from

Re: [ansible-project] Compare CloudFormer tasks in Ansible

2017-07-24 Thread Sreekanth Kannan
Ok, here is my requirement: - We have a Dev environment in AWS (with VPC, subnets, EC2, S3, Applications, etc) - Now we need to deploy QA environment similar to Dev, but we do not want to rebuild all the infrastructure (with VPC, subnets, EC2, S3, Applications etc) manually in QA, instead we

Re: [ansible-project] Compare CloudFormer tasks in Ansible

2017-07-24 Thread Dick Visser
Hi Sreekanth I don't understand - there is a tool called CloudFormer, and you want something in Ansible that does the same thing? Dick On 24 July 2017 at 22:57, Sreekanth Kannan wrote: > Hello Dick > > Thanks for your response. Looks like you are referring to

Re: [ansible-project] Best way to differentiate configurations

2017-07-24 Thread Dick Visser
Try to group things by common properties. Create a role that deploys ntpd, and use those common properties to construct a configuration file using a jinja2 template. That's in general the approach I take. When I found my templates getting crazy complex, it sometimes meant my infrastructure was in

[ansible-project] vmware_guest_snapshot module is not able to find VM

2017-07-24 Thread Vijay Misra
I have used vmware_guest_snapshot module but it's not able to find the VM. even though if i include "folder:" with full path of the VM folder it is still not able to discover the VM. If somebody has observed the same and have some solution. then please help. failed: [10.161.x.x -> localhost]

[ansible-project] Re: Using Pathword Authentication to run a Playbook

2017-07-24 Thread Timothy Brush
Just starting to use Ansible but wouldn't this be better solved using a separate ssh key for prod systems that requires a password that only authorized personnel have access to and loading that key into ssh agent before running plays? Depending on you naming scheme, you may even be able to

Re: [ansible-project] Using local_action and set_fact to gather local machine facts

2017-07-24 Thread Kai Stian Olstad
On 24. juli 2017 22:40, JS wrote: Hi Kai, Brian Some fantastic suggestions there! @Kai your suggestion is greater however, the output is in the format: Mon 24 Jul 21:23:08 BST 2017 I was looking for it to be in the format: 2017-07-24_02:26:08 - as I will be using that to create the directory

[ansible-project] Re: Building a list from complex YAML

2017-07-24 Thread Francois Herbet
look like i've the proper json_query - debug: msg="{{ item }}" with_items: - "{{ SERVICE.MC|json_query('*.PIM_GROUP') }}" which gives "msg": [ "GS_SIGMAX_MC_A_PIM", "GS_SIGMAY_MC_A_PIM" ] Le lundi 24 juillet 2017 22:34:12 UTC+2, Francois Herbet a

Re: [ansible-project] Compare CloudFormer tasks in Ansible

2017-07-24 Thread Sreekanth Kannan
Hello Dick Thanks for your response. Looks like you are referring to CloudFormation, but what I was asking is about a tool within CloudFormation which helps you to generate a template capturing all the resources from your existing infrastructure in JSON format, it is *CloudFormer*. Later

Re: [ansible-project] Using local_action and set_fact to gather local machine facts

2017-07-24 Thread Brian Coca
You seem to be missing facts for localhost, you need to gather them first. --- Brian Coca -- 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

Re: [ansible-project] Compare CloudFormer tasks in Ansible

2017-07-24 Thread Dick Visser
There is: http://docs.ansible.com/ansible/latest/cloudformation_module.html On 24 July 2017 at 21:17, Sreekanth Kannan wrote: > Hello > > I have a need and I am trying to find if there is a module in Ansible that > could help me with it. The scenario and the need is: > >

Re: [ansible-project] Using local_action and set_fact to gather local machine facts

2017-07-24 Thread JS
Hi Kai, Brian Some fantastic suggestions there! @Kai your suggestion is greater however, the output is in the format: Mon 24 Jul 21:23:08 BST 2017 I was looking for it to be in the format: 2017-07-24_02:26:08 - as I will be using that to create the directory names. @Brian I think your

[ansible-project] Building a list from complex YAML

2017-07-24 Thread Francois Herbet
Hi Guys need some advice on this case here's my hostvars --- SERVICE: MC: GS_SIGMAX_MC_A_import: PIM_GROUP: GS_SIGMAX_MC_A_PIM GS_SIGMAY_MC_A_import: PIM_GROUP: GS_SIGMAY_MC_A_PIM i'd like to populate a list of "PIM_GROUP" values whatver the

[ansible-project] Compare CloudFormer tasks in Ansible

2017-07-24 Thread Sreekanth Kannan
Hello I have a need and I am trying to find if there is a module in Ansible that could help me with it. The scenario and the need is: - We have AWS Infrastructure setup and Applications built and running in AWS. - We have three accounts for Dev, QA and PRD. - Now we are required

Re: [ansible-project] netapp - na_cdot_user_role

2017-07-24 Thread Dick Visser
On 24 July 2017 at 12:27, Amrutha p v wrote: > Its solved! That's great news! To help others out there - how exactly did you solve it? -- Dick Visser Sr. System & Network Engineer GÉANT Want to join us? We're hiring: https://www.geant.org/jobs -- You received

Re: [ansible-project] "msg": "error connecting to the device: Unexpected session close" -While connecting to cisco ios-xr router with netconf

2017-07-24 Thread Dick Visser
* What does your playbook look like? * What is the output with extra verbosity? On 24 July 2017 at 18:02, jaychandran subramanian wrote: > Hi , > > I tried using netconf/XML rpc with ansible for netconf_config to cisco > ios_xr router and we got the below

[ansible-project] Re: playbook fails testing connection from loadbalancer (nginix) to 2 backend webhosts (apache2)

2017-07-24 Thread Robert Williams
I am trying to figure out the same issue. Please let me know if you have it resolved. Thanks, On Monday, August 22, 2016 at 7:34:59 AM UTC-5, James Lovato wrote: > > The test to the loadbalancer itself never fails, and serves the same > content as the websites (although host and metadata are a

[ansible-project] "msg": "error connecting to the device: Unexpected session close" -While connecting to cisco ios-xr router with netconf

2017-07-24 Thread jaychandran subramanian
Hi , I tried using netconf/XML rpc with ansible for netconf_config to cisco ios_xr router and we got the below error "msg": "error connecting to the device: Unexpected session close" Ansible version we are using is 2.4 kinly let us know if any inputs. Thanks Jay -- You received this

Re: [ansible-project] Re: Archlinux OS Family issue

2017-07-24 Thread Brian Coca
>> "systemd is a first class citizen in Arch Linux variants and thus >> /etc/os-release will always have the right info [1]. We don't need to rely >> on /etc/arch-release and allowempty workaround." > Is that correct? No, we have encountered systems that did not conform to that

Re: [ansible-project] Re: Archlinux OS Family issue

2017-07-24 Thread Adrian Likins
Analysis sounds correct to me, but would like to clarify the expected result: For a system with /etc/os-release of: NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch ID_LIKE=archlinux ANSI_COLOR="0;36" HOME_URL="https://www.archlinux.org/; SUPPORT_URL="https://bbs.archlinux.org/;

[ansible-project] Re: Archlinux OS Family issue

2017-07-24 Thread Mathias Ettinger
I compared the source codes between 2.3 and 2.4, it seems to me that the check at https://github.com/ansible/ansible/blob/stable-2.3/lib/ansible/module_utils/facts.py#L729-L731 is not present something like here

Re: [ansible-project] Ansible modifies PYTHONPATH which causes Python commands to fail

2017-07-24 Thread Toshio Kuratomi
On Monday, July 24, 2017 at 1:16:47 AM UTC-7, Josu Vilda wrote: > > Yes but I expected that, ansible only pay attention to > ansible_python_interpreter = / u sr / bin / python which is what has been > configured. > Why then, you can not administer all kinds of python applications, if you >

[ansible-project] Re: Archlinux OS Family issue

2017-07-24 Thread mdl
I saw this issue at GitHub where people requested to get Archlinux detection from /etc/os-release. It seems to be related to this. What's the best way to address this with the Ansible team? It's not a big issue but having no spaces in distribution

Re: [ansible-project] Using local_action and set_fact to gather local machine facts

2017-07-24 Thread Brian Coca
To clear up, using local_action does not affect 'controller only' actions like set_fact/group_by/add_hosts/etc. Also using local_action will ONLY use the localhost 'connection vars', the rest of the vars will belong to the inventory_hostname (this is true for all delegation). Aside from the

[ansible-project] Re: Archlinux OS Family issue

2017-07-24 Thread Mathias Ettinger
Got the same output using ansible 2.4: "ansible_distribution": "Arch Linux", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/os-release", "ansible_distribution_file_variety": "NA",

Re: [ansible-project] Failed Deploy (Updating Ubunto) broken modul, please help !!

2017-07-24 Thread Brian Coca
That looks like a coding error in the module or in the installed OpenSSL python library. ​-- Brian Coca​ -- 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

Re: [ansible-project] Re: What traces does Ansible leave on remote hosts and how can I remove them?

2017-07-24 Thread Brian Coca
The no_log setting might be too much as it obscures the info on the controller also, there is another setting that specifically prevents writing to syslog on the remote: no_target_syslog = False -- Brian Coca -- You received this message because you are subscribed to the Google Groups

[ansible-project] Re: Archlinux OS Family issue

2017-07-24 Thread mdl
Thank you so much for your reply Mathias. Version: me@host ~> ansible --version 2 ansible 2.4.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/me/.ansible/plugins/modules', u

[ansible-project] Re: Archlinux OS Family issue

2017-07-24 Thread Mathias Ettinger
Using ansible 2.3.1.0 and the following playbook: - hosts: localhost tasks: - debug: msg={{ vars }} I get, amongst others: "ansible_os_family": "Archlinux", and "ansible_distribution": "Archlinux", What version are you using? Le vendredi 21 juillet 2017 18:32:16

Re: [ansible-project] service module doesnt work

2017-07-24 Thread Brian Coca
Your syntax is invalid: - name:"restart crond service" - service: name:crond state:restarted You never get to the service task as you have an 'empty task' with just the name ... and then you structure yaml format as it were k=v, you probably want the following: - name:"restart crond

Re: [ansible-project] My first steps: apt module

2017-07-24 Thread Peter Kaagman
Thanks for your help Dick did solve the autoremove issue :D Op maandag 24 juli 2017 13:57:52 UTC+2 schreef Dick Davies: > > Old version? http://docs.ansible.com/ansible/latest/apt_module.html says: > > "autoremove > (added in 2.1)" > > On 24 July 2017 at 12:48, Peter Kaagman

Re: [ansible-project] My first steps: apt module

2017-07-24 Thread Peter Kaagman
Hmmm pkn@chronos-2017:~$ ansible --version ansible 2.0.0.2 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides Yup :( Op maandag 24 juli 2017 13:57:52 UTC+2 schreef Dick Davies: > > Old version? http://docs.ansible.com/ansible/latest/apt_module.html

[ansible-project] Re: ldap_attr stops processing entries and hangs the playbook run

2017-07-24 Thread Asil Carlin
There was a replication issue - fixed that and it's now working. On Monday, July 24, 2017 at 10:15:54 AM UTC+1, Asil Carlin wrote: > > Hi, > > I'm seemingly having an issue with the ldap_attr module - it just stops > processing ldap atrributes. I'm defining multiple dictionaries then adding >

Re: [ansible-project] My first steps: apt module

2017-07-24 Thread Dick Davies
Old version? http://docs.ansible.com/ansible/latest/apt_module.html says: "autoremove (added in 2.1)" On 24 July 2017 at 12:48, Peter Kaagman wrote: > Hi there group, > > I'm making my first baby steps with ansible. After fooling around with > ad-hoc command I thought

[ansible-project] My first steps: apt module

2017-07-24 Thread Peter Kaagman
Hi there group, I'm making my first baby steps with ansible. After fooling around with ad-hoc command I thought I'd make the steps to playbooks. Looks promissing :D Ultimate goal is managing my switches, have been playing around with my Ubuntu systems thought. Thought I'd automate my update

[ansible-project] SKipping no hosts matched

2017-07-24 Thread Suporter
Hello, i ran this ansible-playbook setup.yml -i '10.22.212.184,' and i got the error message as no hosts matched, the ip i gave should be entered somewhere else as inventory file as well? -- You received this message because you are subscribed to the Google Groups "Ansible Project"

Re: [ansible-project] Using local_action and set_fact to gather local machine facts

2017-07-24 Thread Kai Stian Olstad
On 24.07.2017 12:09, JS wrote: Hello I am trying to gather facts (date and time) on the local machine (Ansible Host) using (local_action) before the rest of the playbook continues: - name: Gathering and setting Facts for this deploy local_action: set_fact: date_time: '{{

Re: [ansible-project] netapp - na_cdot_user_role

2017-07-24 Thread Amrutha p v
Its solved! On Monday, July 24, 2017 at 2:15:31 PM UTC+5:30, Amrutha p v wrote: > > Hi, > > I am facing the same issue. I have the latest version of ansible (2.3) and > the netapp-lib (latest version) installed. > -- You received this message because you are subscribed to the Google Groups

[ansible-project] Using local_action and set_fact to gather local machine facts

2017-07-24 Thread JS
Hello I am trying to gather facts (date and time) on the local machine (Ansible Host) using (local_action) before the rest of the playbook continues: - name: Gathering and setting Facts for this deploy local_action: set_fact: date_time: '{{ ansible_date_time.date }}_{{

[ansible-project] is log_driver must even for "json-file"?

2017-07-24 Thread kavya KULSHRESHTHA
Hi, I started a container using ansible without specifying log-driver as "json-file" is the default one, but I added below log_options: log_options: max-size: "10m" max-file: "2" Ansible version: 2.2.1.0 What I expected? Container should run with these log_options as

Re: [ansible-project] Become_user whose shell is /usr/sbin/nologin in Ansible 2.4

2017-07-24 Thread Mathias Ettinger
I'm still interested into knowing how to make this task work with ansible 2.4. Since the github issue is still closed, this doesn't seem to be considered a bug, so I need advices about fixing my playbook. Thanks. Le lundi 17 juillet 2017 10:47:05 UTC+2, Mathias Ettinger a écrit : > > Here

[ansible-project] ldap_attr stops processing entries and hangs the playbook run

2017-07-24 Thread Asil Carlin
Hi, I'm seemingly having an issue with the ldap_attr module - it just stops processing ldap atrributes. I'm defining multiple dictionaries then adding them to a list of lists to process them, e.g: # VARS # Define list of attributes to process ds_ldap_config: - "{{ ds_nsslapd_config }}" -

Re: [ansible-project] Using Pathword Authentication to run a Playbook

2017-07-24 Thread JS
Hi Dick Fantastic, many thanks for your reply! I'll give Kai's play above a shot (I prefer having the keys setup as I have also made the playbooks available via Jenkins for automation!) and if that doesn't work I'll use the password authentication for Prod and Keys for the other environments!

Re: [ansible-project] Using Pathword Authentication to run a Playbook

2017-07-24 Thread JS
Hi Kai Fantastic, many thanks for your reply! I'll give your play shot (I prefer having the keys setup as I have also made the playbooks available via Jenkins for automation!) and if that doesn't work I'll use the password authentication for Prod and Keys for the other environments! Regards

Re: [ansible-project] netapp - na_cdot_user_role

2017-07-24 Thread Amrutha p v
Hi, I am facing the same issue. I have the latest version of ansible (2.3) and the netapp-lib (latest version) installed. -- 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,

Re: [ansible-project] Ansible modifies PYTHONPATH which causes Python commands to fail

2017-07-24 Thread Josu Vilda
Yes but I expected that, ansible only pay attention to ansible_python_interpreter = / u sr / bin / python which is what has been configured. Why then, you can not administer all kinds of python applications, if you have to install in all versions what you need ansible. Any solution? El