[ansible-project] Getting jsondiff is not installed error even though jsondiff is installed

2022-02-02 Thread Nick Plichta
Getting fatal: [192.168.0.51]: FAILED! => {"changed": false, "msg": "jsondiff is not installed, try 'pip install jsondiff'"} error on fresh ansible install on ubuntu 20.04 via apt. Additionally I installed python3-jsondiff and community.docker from ansible-galaxy. All I’m trying to do is

[ansible-project] ansible win_ping fails with 'transport_message': 'Bad HTTP

2021-07-28 Thread Nick Bhanji
I am trying to execute: ansible testing -m win_ping - Output: -fog:~/ansible-playbooks/testing$ ansible testing -m win_ping -v [DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 3.6.9 (default, Jan 26 2021,

[ansible-project] Re: k8s_facts just does not work

2021-04-14 Thread Nick-H
well it seems to be limited by k8s api itself , not sure field_selectors is very useful then . json_query is needed to filter out results from the whole output from facts . Maybe for now , it s better to use kubectl in the shell module Le mercredi 14 avril 2021 à 13:09:59 UTC-7, Nick-H a écrit

[ansible-project] k8s_facts just does not work

2021-04-14 Thread Nick-H
well another thing I try and just does not work as per the doc the example from the official doc does not even work : ansibe 2.8 / python3.6 , openshift / kubernetes pip modules 0.11 (0.12 is broken too). *- name: Search for all running pods* * k8s_facts:* *kind: Pod* *

Re: [ansible-project] mysql_db and pymysql error

2021-04-13 Thread Nick-H
inventory, then you have to explicitly set > the python interpreter to be used for that host, via > `ansible_python_interpreter` > > See also: > https://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-handle-not-having-a-python-interpreter-at-usr-bin-python-on-a-

Re: [ansible-project] mysql_db and pymysql error

2021-04-13 Thread Nick-H
using python2 please ? Le jeudi 8 avril 2021 à 16:11:30 UTC-7, Nick-H a écrit : > Now, I tried that in my ansible.cfg and indeed it passed my errors , > thank you Matt ! > I am still a bit confused though , Why do we bother creating virtual > environments if eventually ansible

Re: [ansible-project] mysql_db and pymysql error

2021-04-08 Thread Nick-H
Le jeudi 8 avril 2021 à 12:07:43 UTC-7, Nick-H a écrit : > > hmm ok but this runs on the controller ( awx ) , so I followed this doc : > > https://docs.ansible.com/ansible/latest/reference_appendices/python_3_support.html#on-the-controller-side > > Do I need to use t

Re: [ansible-project] mysql_db and pymysql error

2021-04-08 Thread Nick-H
Now, I tried that in my ansible.cfg and indeed it passed my errors , thank you Matt ! I am still a bit confused though ;) Le jeudi 8 avril 2021 à 12:07:43 UTC-7, Nick-H a écrit : > > hmm ok but this runs on the controller ( awx ) , so I followed this doc : > > https://docs

Re: [ansible-project] mysql_db and pymysql error

2021-04-08 Thread Nick-H
: > If you want a module to run with python3, you will generally need to set > `ansible_python_interpreter` for that host to get it to use the interpreter > you want. We default and fallback to py2. > > On Thu, Apr 8, 2021 at 1:23 PM Nick-H wrote: > >> Oh No I wa

Re: [ansible-project] mysql_db and pymysql error

2021-04-08 Thread Nick-H
rror is in regards to the "keyword only marker" defined at: > > > https://github.com/PyMySQL/PyMySQL/blob/6ccbecc1a0dfd04065b081950d2d35b1dac0aaa8/pymysql/connections.py#L164-L166 > > On Thu, Apr 8, 2021 at 1:03 PM Nick-H wrote: > >> I am trying to move to pyth

[ansible-project] mysql_db and pymysql error

2021-04-08 Thread Nick-H
I am trying to move to python 3.6 on centos 7.8 and ansible 2.8.12 Mysql_db module fails importing connections from PyMySQL pip module. At least with recent versions ( 0.9 ,1.0.2 ) using 0.7 pass. the error seems to be related to a PEP recommendation E402 . As per PyMySQL doc , python3 is

[ansible-project] "Unable to find pip..."

2021-04-05 Thread Nick-H
I am trying to use pip module to create a virtual_env for python3 on Centos7 . I have tried a few variety of parameters but each returned various errors . If I set : virtualenv_command: /usr/bin/python3 -m venv Then it fails with "--ensurepip" error So I tried to skip the use of venv module

[ansible-project] Re: exclude_path not working on archive module

2020-12-28 Thread Nick-H
à 18:38:12 UTC-8, Nick-H a écrit : > I have the same problem, I want to use 'exclude_path' ,but I can't get it > working. > The issue on github is now closed even though the problem remain I think. > Was there any way to make exclusion working as it should, I mean as it is

[ansible-project] Re: exclude_path not working on archive module

2020-12-27 Thread Nick-H
I have the same problem, I want to use 'exclude_path' ,but I can't get it working. The issue on github is now closed even though the problem remain I think. Was there any way to make exclusion working as it should, I mean as it is described in the doc ? tks Le lundi 21 janvier 2019 à

[ansible-project] Is there a better way to do this: Wait for windows services like winrm using a timer

2020-12-12 Thread Nick Maize
Right now I'm working on a project to join a Windows server to the domain, the process works but currently I'm waiting for the winrm service using win_wait_for. Is there a more dynamic way to do this? Generic example below of the wait. - name: Wait for winrm to come back online after reboot

Re: [ansible-project] Ansible tower issue

2020-10-10 Thread Nick Schendel
Looks like your issue is a permissions problem: change_dir \\"/opt/tibco/image\\" failed: Permission denied I'd check permissions on that directory. Seems like it's probably the destination directory at first glance. Make sure the user that ansible is connecting as has permissions to write

Re: [ansible-project] can we pass a wildcard in a module's parameter's value ?

2020-10-08 Thread Nick-H
r regex therefore doesn't mean much. > > The module needs to support the type, so in general a wildcard would only > work if the module explicitly supports it. > > Regards > Racke > > > > > On Thu, 8 Oct 2020 at 07:22, Nick-H wrote: > >> &

Re: [ansible-project] can we pass a wildcard in a module's parameter's value ?

2020-10-07 Thread Nick-H
octobre 2020 à 15:53:24 UTC-7, Nick-H a écrit : > I am not quite sure what {{something}} was supposed to be here ? > > > Le mercredi 7 octobre 2020 à 14:50:31 UTC-7, Nick-H a écrit : > >> thanks Matt, >> here is the real example , trying to remove multiple IAM policie

Re: [ansible-project] can we pass a wildcard in a module's parameter's value ?

2020-10-07 Thread Nick-H
I am not quite sure what {{something}} was supposed to be here ? Le mercredi 7 octobre 2020 à 14:50:31 UTC-7, Nick-H a écrit : > thanks Matt, > here is the real example , trying to remove multiple IAM policies from a > bunch of users > > - name: assign policies

Re: [ansible-project] can we pass a wildcard in a module's parameter's value ?

2020-10-07 Thread Nick-H
{{ something }}' > when: item.startswith('prefixed-') > > On Wed, Oct 7, 2020 at 4:15 PM Nick-H wrote: > >> hi, again a very simple use case in appearance but that is driving me >> nuts to realize with ansible, anyone ever done : >> tasks: >> - name: r

[ansible-project] can we pass a wildcard in a module's parameter's value ?

2020-10-07 Thread Nick-H
hi, again a very simple use case in appearance but that is driving me nuts to realize with ansible, anyone ever done : tasks: - name: run a module any_module: users: {{item}} # I want to loop first here state: absent name: "prefixed-*" # basically anything that starts with

[ansible-project] pass module args as extra variable

2020-09-01 Thread Nick-H
Hi, in order to debug a playbook , I need to pass some value to a module_arg at run time . I thought using extra-variables but it doesn't work, args still show 'null' The module is elasticache and I need to try a run with hard_modify = true . But this is not part as one of the existing

Re: [ansible-project] Re: 2 levels nested loop with variables

2020-08-17 Thread Nick-H
*can't seem to achieve this, what other solution I can explore ? cheers Le lundi 17 août 2020 à 11:52:15 UTC-7, Nick-H a écrit : > Thanks Racke, I should have had some context. policy_name can vary, > actually in the real task I have other policies with other names, hence the > use

Re: [ansible-project] Re: 2 levels nested loop with variables

2020-08-17 Thread Nick-H
;rds-db:connect" ], "Resource": "arn:aws:rds-db:{{ rds_region }}{{ aws_id }}:dbuser:*/username-{{ role }}" ... Le jeudi 13 août 2020 à 11:39:26 UTC-7, brae...@gmail.com a écrit : > On 8/13/20 8:00 PM, Nick-H wrote: > > so, I have been trying

Re: [ansible-project] Re: 2 levels nested loop with variables

2020-08-13 Thread Nick-H
t;arn:aws:rds-db:{{ rds_region }}{{ aws_id }}:dbuser:*/username-{{ role }}" ... Le jeudi 13 août 2020 à 11:39:26 UTC-7, brae...@gmail.com a écrit : > On 8/13/20 8:00 PM, Nick-H wrote: > > so, I have been trying with lookup('dict') but still not quite close to > the expected

[ansible-project] Re: 2 levels nested loop with variables

2020-08-13 Thread Nick-H
ted', mysql_privilege[role] ) }} ", policy: "{{ lookup('template', 'template.json.j2') }}" } vars: mysql_privilege: role: - rw - ro regions: - us-west-1 - us-west-2 Le mercredi 12 août 2020 à 17:27:22 UTC-7, Ni

Re: [ansible-project] Question re: Can Ansible boot an ISO file on a bare metal server?

2020-07-08 Thread Nick Schendel
Directly I don't believe so but depending on what kind of out of band management capabilities your server has it might be possible in combination with a few other things. If it has a management interface that can be acted on via API you might be able to do it via that somehow. Or you might be

[ansible-project] Are jinja2 extensions available?

2020-06-21 Thread Nick Kakouros
Jinja2 documentation mentions some extensions that can be enabled. Are these available somehow? Can I enable them in Ansible? https://jinja.palletsprojects.com/en/2.11.x/templates/#extensions -- You received this message because you are subscribed to the Google Groups "Ansible Project" group.

[ansible-project] Re: Which module can I use to run command on command prompt on all my hosts ?

2020-06-01 Thread Nick Schendel
Since you mentioned gpupdate, then I assumed windows. Ultimately the best place to look to figure out what you can use is to search the all module index: https://docs.ansible.com/ansible/latest/modules/list_of_all_modules.html most, if not all of the windows stuff has win_ -- You received

[ansible-project] Re: Which module can I use to run command on command prompt on all my hosts ?

2020-06-01 Thread Nick Schendel
https://docs.ansible.com/ansible/latest/modules/win_command_module.html#win-command-module On Monday, June 1, 2020 at 1:45:21 PM UTC-5, Work-Hard wrote: > > Hi, > Which module can I use as a task to run a command on the command prompt on > all my hosts? > > example - > > cmd: gpupdate/force > >

[ansible-project] Can I override a collection's module using `library`?

2020-05-12 Thread Nick Kakouros
Many modules in the google.cloud collection are in a sorry state. I would like to override some of them with local fixes. Before collections, I could specify `library` in my ansible.cfg and place a copy of the module in that library folder and ansible would use my fixed version of the module.

[ansible-project] Questions about collections and issue tracking

2020-05-08 Thread Nick Kakouros
My questions: - Should I close issues and PRs on ansible's main project and open new ones on collections' issue trackers? - Will there be a massive issue/PR migration from ansible's main project to the new collections? -- You received this message because you are subscribed to the Google

Re: [ansible-project] Will `with_*` loops be removed once 2.10 is out?

2020-04-22 Thread Nick Kakouros
Thanks for the tip! On Wednesday, April 22, 2020 at 1:50:55 PM UTC, Felix Fontein wrote: > > Hi Nick, > > > Is the a way to combine `with_` and a lookup from a collection? E.g. > > the flattened lookup from community.general. > > you can use "with_namespace.coll

[ansible-project] Will `with_*` loops be removed once 2.10 is out?

2020-04-22 Thread Nick Kakouros
Is the a way to combine `with_` and a lookup from a collection? E.g. the flattened lookup from community.general. -- 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

Re: [ansible-project] OS support contribution guidelines

2020-03-24 Thread Nick Venenga
Thanks! On Wednesday, March 18, 2020 at 8:32:32 PM UTC-4, Matt Davis wrote: > > This thread hits on a number of discussions that have been happening for > years- rather than trying to recap them here, I wrote a blog post about it: >

Re: [ansible-project] Ansible - errno 101 network is unreachable

2020-03-17 Thread Nick Venenga
It sounds like you require a network proxy but haven't configured dnf to use it correctly. See https://unix.stackexchange.com/a/436562/249351 On Tuesday, March 17, 2020 at 7:20:54 PM UTC-4, Santhosh Ganesan wrote: > > anyhow newbie communication makes bad, > > tried setting up a new vm tried a

Re: [ansible-project] OS support contribution guidelines

2020-03-17 Thread Nick Venenga
Sure, it'd be an astronomical amount of work to fully support Windows. That's definitely not going to happen in a single PR. As you mention > it would be fantastic if we could ever get Ansible as a controller working on Windows but the practical realities is that this won't happen anytime soon

Re: [ansible-project] OS support contribution guidelines

2020-03-17 Thread Nick Venenga
control node. > > On Tue, Mar 17, 2020 at 3:04 PM Nick Venenga > wrote: > >> What host operating systems does Ansible accept PRs for? I got hit with a >> hard no here >> https://github.com/ansible/ansible/pull/65381#issuecomment-600250171 >> that sounds like

[ansible-project] OS support contribution guidelines

2020-03-17 Thread Nick Venenga
What host operating systems does Ansible accept PRs for? I got hit with a hard no here https://github.com/ansible/ansible/pull/65381#issuecomment-600250171 that sounds like anything Windows related it out of the question. I see various vague references to reserving the right to only support

Re: [ansible-project] json_query/jmespath filtering question

2020-03-11 Thread Nick Schendel
- debug: var=snapshotdetails > > > If you put this in your ansible.cfg then it's more readable: > > stdout_callback = yaml > bin_ansible_callbacks = True > > On Thu, 12 Mar 2020 at 00:01, Nick Schendel > wrote: > > > > Yup I absolutely did not notice tha

Re: [ansible-project] json_query/jmespath filtering question

2020-03-11 Thread Nick Schendel
- debug: var=snapshotdetails > > > If you put this in your ansible.cfg then it's more readable: > > stdout_callback = yaml > bin_ansible_callbacks = True > > On Thu, 12 Mar 2020 at 00:01, Nick Schendel > wrote: > > > > Yup I absolutely did not notice that, tha

Re: [ansible-project] json_query/jmespath filtering question

2020-03-11 Thread Nick Schendel
; You need to use backticks instead. > If you look closely you can see that those were in the previous > example. I agree that it's not easy to spot :) > > Dick > > On Wed, 11 Mar 2020 at 23:24, Nick Schendel > wrote: > > > > Still struggling to get this wo

Re: [ansible-project] json_query/jmespath filtering question

2020-03-11 Thread Nick Schendel
few permutations I have tried have run successfully but then returned a blank value. As you can see from the playbook snapshotdetails is a registered variable from the previous task. On Tuesday, March 10, 2020 at 4:15:54 PM UTC-5, Nick Schendel wrote: > > Oops I said the wrong r

Re: [ansible-project] json_query/jmespath filtering question

2020-03-10 Thread Nick Schendel
*** > ok: [localhost] > > TASK [debug] > * > ok: [localhost] => > disk_sn

[ansible-project] json_query/jmespath filtering question

2020-03-10 Thread Nick Schendel
Trying to wrap my head about how to query json results from a URI call & could use some guidance. I am guessing there are plenty in this group which this will be an easy question for. I am registering the json response from a URI call to our backup system to 'snapshotlist' Here is an example

[ansible-project] Re: Any updates on this, please help on my POST? https://groups.google.com/forum/#!topic/ansible-project/vVYN7qsRn7U

2020-01-23 Thread Nick Schendel
Creating a second post hours after your first simply pointing back at it might not be the best way to get help. Just for future reference. On Thursday, January 23, 2020 at 1:45:06 PM UTC-6, Work-Hard wrote: > > Any updates on this, please help on my POST? >

Re: [ansible-project] Playbook is unable to install specified KB number updates but shows OK in playbook recap

2020-01-23 Thread Nick Schendel
Based on that message it appears that a reboot is requried before you can install the patches. The win_updates module is not going to reboot the host after changes if it doesnt make any changes. Reboot the host manually, then try running again and I bet it goes. Otherwise you could probably

[ansible-project] Re: Need help using URI module for a curl command with json body

2019-12-11 Thread Nick Schendel
eturns 202 on sucess. return_content: yes validate_certs: yes tags: restore delegate_to: localhost become: no On Wednesday, December 4, 2019 at 6:24:51 PM UTC-6, Robert Heppe wrote > > Thanks Nick, > > I have not. I just tried this but get another error for the , at the e

Re: [ansible-project] Re: Need help using URI module for a curl command with json body

2019-12-06 Thread Nick Schendel
Sure, I will grab my entire example task in just a bit here. Happy to share if it might help. On Thu, Dec 5, 2019, 12:23 PM Robert Heppe wrote: > Hi Bram, > Yes, I just removed the IP for the post. I think connectivity should be > fine as I can telnet to the hostname from the ansible system.

[ansible-project] Re: Need help using URI module for a curl command with json body

2019-12-04 Thread Nick Schendel
Have you tried the body section with the the curly braces? Like so: body: "id": "{{ customer_id }}", "name": "{{ customer_name }}", "disabledFeatures":

[ansible-project] Using Github hosted private repos with Tower

2019-10-17 Thread Nick Schendel
How are people using Tower with GitHub private repositories within a team? My company has a GitHub enterprise subscription hosted by GitHub in the cloud w/ SAML auth enforced. I have setup a service account/machine account for our team for use with our Tower instance. It is setup as an

[ansible-project] Ansible role README generator

2019-10-08 Thread Nick Kakouros
I think I have seen at some point a role that used a yaml array to specify the contents of the REAMDE. That's all I remember. In any case, are there tools to automatically generate a README for a role or based on a template of some sort? Has anyone used anything? -- You received this message

[ansible-project] Re: Loading variables with data from REST

2019-09-24 Thread Nick Schendel
I am working on some playbooks right now using the URI module and doing what you describe. If you register the output of the task, you can call the response contents with output.json.keyname. Where output is the name you used in the register. So as an example: - name: get some value via URI

[ansible-project] Can I run plays in parallel?

2019-08-27 Thread Nick Kakouros
I have 10 files with a play each. In total these plays provision 4 hosts. I have written a function in bash that takes as an argument the host I want to provision and calls ansible with all 10 playbooks and a `-l`(limit) parameter for only the host I provided. I can pass multiple hosts too.

Re: [ansible-project] How to write selected values to a file from a list of JSON arrays?

2018-11-24 Thread Nick Ellson
jinja, if you have time? (I have a working file now, thank you very much!) On Saturday, November 24, 2018 at 11:18:21 AM UTC-8, Kai Stian Olstad wrote: > > On Saturday, 24 November 2018 20:10:19 CET Nick Ellson wrote: > > > > I have a task that I am scratching my head on,

[ansible-project] How to write selected values to a file from a list of JSON arrays?

2018-11-24 Thread Nick Ellson
{ "hostname": "host2", "id": "00e75962", "mgmtIP": "10.10.10.8" }, I'd like to spit this to a ./inventory/hosts file in a format that my playbook can then use in the next set of tasks. So ju

Re: [ansible-project] Is there a way to access a play's vars section?

2018-11-10 Thread Nick Kakouros
I forgot to mention that `import_tasks` or `include_tasks` also results in the undefined alias error. On Saturday, November 10, 2018 at 2:50:05 PM UTC+1, Nick Kakouros wrote: > > Thanks. In that case, could I add a task to a play programmatically? I > have around 20 plays and I tr

Re: [ansible-project] Is there a way to access a play's vars section?

2018-11-10 Thread Nick Kakouros
Thanks. In that case, could I add a task to a play programmatically? I have around 20 plays and I try to have the vars section of each play to be saved locally to a yaml file. Right now, at the end of each play, I use a 'copy' tasks that reads the vars via a yaml alias. I would like to not

[ansible-project] Is there a way to access a play's vars section?

2018-11-09 Thread Nick Kakouros
Given a play, I would like to reference somehow its vars section. I would like to achieve any of the two: - The next play to have access to the vars of the previous play like "{{ prev_play_vars }}" - The vars section of each play to be available to the rest of the plays via sth like

[ansible-project] Re: Modify various groups if present

2018-05-16 Thread Nick Rogers
You may not need to use the getent module at all - the group module already uses groupmod if the group already exists. If you want to use getent, then it looks like you are missing '_' characters in the "when" conditions. They should be when: getent_passwd ... and when: getent_group

[ansible-project] Re: azure_rm_virtualmachine: error to import AzureRMModuleBase

2018-05-16 Thread Nick Rogers
Have you tried running pip install packaging On Wednesday, May 16, 2018 at 8:43:06 AM UTC-5, Irfan Sayed wrote: > > please suggest. I m stuck > > On Wednesday, May 16, 2018 at 10:05:08 AM UTC+2, Irfan Sayed wrote: >> >> Hello, >> >> I am trying to create the azure VM using ansible module :

Re: [ansible-project] playbooks and tasks

2018-05-15 Thread Nick Rogers
Brian states things the way we define them. I broke things up that way for a few reasons: - Development process: Our dev team works in a similar fashion with their code base, and objectifying the infrastructure Ansible is controlling in a similar way lets the dev team use my Ansible work on

[ansible-project] Re: Question on 'networks' parameter for VMWare cloud module

2018-05-15 Thread Nick Rogers
Ansible creates a sysprep/linuxprep script: https://github.com/ansible/ansible/blob/3a6f0fbb9c698b9440f1c21c973822d1b8883124/lib/ansible/modules/cloud/vmware/vmware_guest.py#L1239 I have a lab with only static IPs and the networks parameter(s) work fine for me when creating new/cloning. On

[ansible-project] Re: VMware - convert template to virtual machines

2018-05-15 Thread Nick Rogers
It looks to me like "num_cpus" is number of sockets, and "num_cpu_cores_per_socket" can set the cores per socket. Is that what you're asking? or am I way off the mark... If you don't specify "num_cpu_cores_per_socket", it defaults to 1, if I'm reading the pyvmomi source correctly:

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

2018-05-10 Thread Nick Rogers
I would try to `curl https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/repomd.xml' from the error on worker1/2 and see if it reports anything more helpful than what you're getting back. Feels like a networking problem to me. On Thursday, May 10, 2018 at 11:25:36 AM

[ansible-project] Re: Get basic vmware module working - vmware_guest_find

2018-05-10 Thread Nick Rogers
ms: - "{{ vm_hostname }}" - name: debug vm_folder debug: var: vm_folder You will then see what it's doing and can move on from there. On Thursday, May 10, 2018 at 4:06:32 AM UTC-5, Ted wrote: > > Hi Nick, > > Thanks for the response. I'm actually basing my tasks

[ansible-project] Re: Get basic vmware module working - vmware_guest_find

2018-05-09 Thread Nick Rogers
It looks like your problem is using the "vm_hostname" in the task. In my experiments, I either use "{{ inventory_hostname }}" for a per vm/host/target definition in the hosts group or a "with_items" loop: - name: Find Guest's Folder using name vmware_guest_find: hostname: "{{

Re: [ansible-project] Re: VMware - convert template to virtual machines

2018-04-30 Thread Nick Rogers
Ok, here you go, it's still in progress, but it's up. https://github.com/nickrnet/ansible-vmware On Saturday, April 28, 2018 at 5:32:41 AM UTC-5, Ted wrote: > > Hi Nick, > > Thanks for the reply. If you could put it up on Github that would be > brilliant. > > Thanks again

[ansible-project] Re: VMware - convert template to virtual machines

2018-04-27 Thread Nick Rogers
I do all of this with playbooks and the Ansible vmware_guest module with Ansible 2.4.4 against vCenter currently - though I am not sure the status of the vmware_guest module going forward (there are Github issues in 2.5 that discuss removing/depracating it). I have the following structure:

[ansible-project] Re: ( vmware-guest module) Creating VM from template and adding "No of cores per socket"

2018-03-22 Thread Nick Rogers
> "hw_guest_id": null, > "hw_interfaces": [ > "eth0" > ], > "hw_memtotal_mb": 2048, > "hw_name": "kuber-n-03", > "hw_power_status": &

[ansible-project] Re: ( vmware-guest module) Creating VM from template and adding "No of cores per socket"

2018-03-22 Thread Nick Rogers
Looks like in 2.5 you specify 'num_cpu_cores_per_socket' in the vmware_guest 'hardware' dictionary. - name: Create VM vmware_guest: hostname: somevmwareesxhost ... other vmware_guest config ... hardware: num_cpus: 4 num_cpu_cores_per_socket: 8 ... other hardware

[ansible-project] Copy file(s) locally in Ansible machine

2017-09-12 Thread Nick Mellor
for it? Cheers, Nick -- 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

[ansible-project] Re: Line breaks are excluded when copying a file from ansible linux host to windows server using win_copy

2017-09-03 Thread Nick Mellor
lly ensures files have the "right" line-endings during checkout (meaning "right" for the machine doing the checkout, not the machine the file's copied to.) Cheers, Nick On Thursday, 3 March 2016 22:33:17 UTC+11, ishan jain wrote: > > I am copying some text fi

Re: [ansible-project] win_shell/win_command chdir to Directory with Spaces

2017-07-26 Thread Nick Couchman
tion\mycmd.exe' But this doesn't seem to work in the chdir argument. Unfortunately because the application that I'm running relies on the presence of certain files in the current working directory, I need to actually move to that directory. Thanks, Nick On Wednesday, July 26, 2017 at 12:35:59 PM UTC-4, Swed

[ansible-project] win_shell/win_command chdir to Directory with Spaces

2017-07-26 Thread Nick Couchman
:/Program\ Files/Application No matter what I try, here, I get the following message from the module: The directory name is invalid What's the trick to making chdir work for directories with spaces?? Thanks - Nick -- You received this message because you are subscribed to the Google Groups "An

[ansible-project] EFS Module Not Updating Existing EFS Filesystems

2017-03-30 Thread Nick P
The EFS module is not updating an existing EFS filesystem. It seems to creating a new filesystem no matter what information I provide. When looking at the code it looks like it creates a new filesystem every time no matter what. So maybe this is expected behavior. But the documentation

[ansible-project] Help with Nested Loops

2017-01-23 Thread Nick Couchman
Hey, everyone, I'm having figuring out how to use with_items (or some variation thereof) in order to loop over a list of items within another list. What I'm trying to do is allow a playbook to accept a mountpoint variable/input, and then find the top-level disk device responsible for that.

[ansible-project] trouble using sros modules to log in with a specific user

2016-12-01 Thread Nick Keeling
First of all, I am still learning Ansible, so there is a very real possibility this is user error, but here is my issue: When I try to log in using the sros module, regardless of the username I am using in the yml file, it is using my username from the ansible host machine Here is the yml:

[ansible-project] Re: Ansible cron module creates jobs for the wrong user

2016-10-28 Thread Nick Santamaria
I have run into a similar issue. System info below: host: OS X Sierra target: Ubuntu 16.04 $ ansible --version ansible 2.1.2.0 The following task results in a cron entry for the *root* user, not the *ubuntu *user. --- - hosts: all become: yes become_method: sudo tasks: - name:

Re: [ansible-project] Re: looping over set of tasks (roles?)

2016-10-19 Thread Nick Tkach
Thank you very much! No wonder I hadn't figured this out earlier! I'm sure there's just some aspect I never looked into. Just for the next person who comes along what I got to work was playbook.yml --- - hosts: localhost become: false tasks: - include: "roles/httpd/tasks/main.yml"

[ansible-project] Re: How to read variable file each iteration of a task?

2016-10-19 Thread Nick Tkach
of Ansible for now). So unfortunately I don't think we can take advantage of inventory or group. On Wednesday, October 19, 2016 at 8:39:35 AM UTC-5, Nick Tkach wrote: > > Yes, thanks I think that does help some. I think the part I'm missing > still is how to somehow pull in each file name one

[ansible-project] Re: How to read variable file each iteration of a task?

2016-10-19 Thread Nick Tkach
t;My site {{ site_name }} is running on port {{ port_number > }}." > > ... > > # vim: ft=ansible: > > Sorry if the formatting is a little wonky the code widget is a little > weird sometimes. > > Hope this helps, best of luck. > > Alex > > > > On Tues

[ansible-project] How to read variable file each iteration of a task?

2016-10-18 Thread Nick Tkach
So, the general idea is I've got a playbook that has a set of "property" files (yaml format). Different filenames, but the variable names inside are the same: group_vars/siteA.yml --- site_name: appA port: 8080 group_vars/siteB.yml --- site_name: appB port: 8090 and so on. I want to run a

Re: [ansible-project] Nested facts get clobbered with an update to child fact

2016-09-30 Thread Nick
On 29/09/16 03:53, E.C. Raymond wrote: I am testing on both 1.9.4 and 2.1 and seeing the exact same behavior. We have a fact.d generator that creates a tree of facts under ansible_local. We use this to set defaults, but if during playbook execution it needs to update a default, it clobbers

[ansible-project] Examples of Multiple Instances of a "thing" on a single box

2016-09-20 Thread Nick Tkach
Does anyone know of any good examples of having more than one instance of an app per box? Most examples seem to be grouped into something like web_servers group has boxes 1,2,3 and has a nice, neat *one* httpd on 1, *one* httpd on 2, and *one* httpd on 3. Problem I'm having is that I'm

[ansible-project] Variable woes

2016-03-28 Thread Nick Walke
Fairly new to Ansible so I'm trying to wrap my head around the best way to handle variables and such. I've been trying to follow the best practices page, so I have a group_vars folder with my environments underneath like so: group_vars/ staging/ vars.yml I then have a role called "fms"

[ansible-project] Galaxy - Install Role from Subdirectory of Github Repo

2016-02-25 Thread Nick Allen
I have a Github repository that contains multiple roles, each in separate subdirectories. For example, I have separate roles 'role-alpha' and 'role-beta' in a repo at https://github.com/whoami/project.git each located in subdirectories as follows. - provisioning/roles/role-alpha -

[ansible-project] Re: Can not attach CM rom in Vmware

2015-10-20 Thread Nick Vanadium
ameter under vm_hardware > > vm_hardware: > memory_mb: "{{ memory }}" > num_cpus: "{{ cpucount }}" > osid: "{{ osid }}" > scsi: paravirtua > vm_cdrom: > type: "iso" > iso_path: "datastore1/iso/ansible-ks.iso&qu

[ansible-project] Can not attach CM rom in Vmware

2015-10-16 Thread Nick Vanadium
Greetings all. Apologies if this is not the correct place to post this but I wasn't able to find anything related to this. So I have recently began playing with Ansible and I am trying to build some VMs in Vmware Sphere using the Ansible module. However I can't seem to be able to attach the

Re: [ansible-project] csvlookups referencing variables

2015-10-14 Thread Nick Wolff
Still can't figure this out if anyone has any ideas. Thanks, Nick Wolff On Tuesday, September 22, 2015 at 12:25:21 PM UTC-4, Nick Wolff wrote: > > On Tuesday, September 22, 2015 at 10:56:34 AM UTC-4, Brian Coca wrote: >> >> the 2nd one is right, but you need a space: >>

Re: [ansible-project] csvlookups referencing variables

2015-09-22 Thread Nick Wolff
On Tuesday, September 22, 2015 at 10:56:34 AM UTC-4, Brian Coca wrote: > > the 2nd one is right, but you need a space: > > '{{ lookup("csvfile", name + " file=/etc/passwd col=3 delimiter=:") }}' > > > > -- > Brian Coca > If I do that I get back [WARNING]: non fatal error while trying to

[ansible-project] csvlookups referencing variables

2015-09-22 Thread Nick Wolff
Hello all, I'm trying to do a csvlookup that references a variable so I can dynamically choose which line of the file. I tried the first two thinks to do the lookup with name only the third directly referencing the name works - hosts: "{{ target }}" vars: name : "REALUSER" uid :

[ansible-project] Reset vars between plays on same host

2015-07-14 Thread Nick Tkach
Is there a way to somehow reset variables in-between plays? What I'm trying to do is make a playbook that creates my standard tomcat instance layout. So given the setup below, as I understand it you'd have app files group_vars where you could set whatever things specific to that app instance

[ansible-project] Service Module Timeout?

2015-01-13 Thread Nick Fraker
of my Atlassian services, those take 3 - 5 minutes for their Tomcat to start! I'd really like to not be forced to use ignore_errors: yes for this, since it gives false-positives for monitoring ansible performance later on. Thanks, -Nick F. -- You received this message because you are subscribed

[ansible-project] Radical RFE: ansible should differentiate between constants and variables

2014-12-09 Thread Nick Irvine
By constant, I mean all variables that can be computed prior to any tasks being run and will not change, like inventory_hostname. Variables are therefore things that may change due to a task being executed. The idea is that any when clause that contains only constants can also be evaluated

Re: [ansible-project] the precedence of var_files includes when path is constructed from vars

2014-10-30 Thread Nick
progress. Cheers, Nick -- 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

Re: [ansible-project] the precedence of var_files includes when path is constructed from vars

2014-10-30 Thread Nick
On 30/10/14 20:48, Michael DeHaan wrote: inventory scoped variables have less priority than globally scoped things. This is expected, yes. Thanks for confirming. This case didn't appear to be inventory scoped, as it wasn't taking information from host_vars or group_vars, but I see why it is

[ansible-project] the precedence of var_files includes when path is constructed from vars

2014-10-27 Thread Nick
? Are the are any other special variables? What precedence is intended when ordinary vars like myhost are used instead of ones like inventory_host? c) ask if is it something which may be changed at a later date, or relied on not to change? Thanks, Nick --- ansible --version ansible 1.8

[ansible-project] Ansigenome: A tool to help you gather information and manage your roles

2014-07-22 Thread Nick Janetakis
What do you guys think about https://github.com/nickjj/ansigenome. I released it yesterday and would appreciate some feedback. Here's a snippet from the readme: Ansigenome is a command line tool designed to help you manage your Ansible roles. It does 6 things: *scan* a path containing

Re: [ansible-project] Ansigenome: A tool to help you gather information and manage your roles

2014-07-22 Thread Nick Janetakis
Thanks for the feedback, I'll try to address some of your concerns: *Re: run:* The stemmed from the ginas project. It's currently 50 roles inside of a single git repo. The author of ginas recently decided he's going to try and break up each role into stand alone git repos and release whatever

  1   2   >