[ansible-project] Is it possible to pass 'vars_prompt' variables from one playbook to another that would normally resemble passing arguments in functions?

2018-04-12 Thread EspressoBeanies
I'm wondering whether or not its possible to pass variables defined by 'vars_prompt' from one playbook to another when that other playbook is properly referenced in the first playbook. In other programming languages, this would be the equivalent of passing function arguments when the functions

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

2018-04-20 Thread EspressoBeanies
I have a question about the 'networks' parameter for the VMWare cloud module. How do the options in this particular parameter get passed to the operating system during the initial deployment or setup process? With the virtual machine NIC settings for any ESXi instance, there is no place to defi

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

2018-04-27 Thread EspressoBeanies
I don't think you can technically do that from the current list of available modules: http://docs.ansible.com/ansible/latest/modules/list_of_cloud_modules.html I popped an earlier question about how ESXi transfers IP address settings but no one got back to me. Some of the network settings appl

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

2018-05-15 Thread EspressoBeanies
stand why the authors added that as it's confusing, but maybe it's strictly for setting up a new ESXi instance. On Friday, April 27, 2018 at 12:51:16 PM UTC-4, Sebastien Desbois wrote: > > Hello, > > Can you precise which module you are using exactly? > > > Le vendre

[ansible-project] Total Ansible n00b needing guidance on translating bash command to Ansible playlist

2017-08-15 Thread EspressoBeanies
Hi, I'm trying to run the following nested bash command: rm $( locate somefile ) but Ansible is kicking back an error asking me to use "state=absent" instead. How do I execute this while I'm searching for the potential location of "somefile" at the same time? And is this the correct location f

Re: [ansible-project] Total Ansible n00b needing guidance on translating bash command to Ansible playlist

2017-08-15 Thread EspressoBeanies
value from > http://docs.ansible.com/ansible/latest/find_module.html and then set the > file state to absent. > > > On Tue, Aug 15, 2017 at 10:13 AM, EspressoBeanies > wrote: > >> Hi, >> >> I'm trying to run the following nested bash command: rm $( loc

Re: [ansible-project] Total Ansible n00b needing guidance on translating bash command to Ansible playlist

2017-08-15 Thread EspressoBeanies
Whoops, posted too soon. On Tuesday, August 15, 2017 at 11:55:04 AM UTC-4, EspressoBeanies wrote: > > Hi Andrew, > > Thanks for the reply. I'm unfamiliar with how to reference the return > value syntax. Would it be something like this? > > --- > tasks: > - name: S

Re: [ansible-project] Total Ansible n00b needing guidance on translating bash command to Ansible playlist

2017-08-15 Thread EspressoBeanies
So, something like this? tasks: > - name: Search files > - find: > files: "somefile" > results: $ARG1 > - name: Remove file > file: $ARG1 state=absent On Tuesday, August 15, 2017 at 11:56:06 AM UTC-4, EspressoBeanies wrote: > > Whoops, posted t

Re: [ansible-project] Total Ansible n00b needing guidance on translating bash command to Ansible playlist

2017-08-15 Thread EspressoBeanies
quot;file" > register: find_result > > - name: remove found files > file: > path: "{{ item.path }}" > state: absent > with_items: "{{ find_result.files }}" > ''' > > > On Tue, Aug 15, 2017 at 10:59 AM, EspressoBeanies

[ansible-project] Modifying local files while targeting a remote system

2017-11-07 Thread EspressoBeanies
Is it possible to modify local files while targeting a remote system in an Ansible YAML file? I'm trying to run an Ansible script on a remote machine, but when everything finishes on that remote machine, I'd like to move that hostname from one Ansible hosts file to another. Is it possible and if

Re: [ansible-project] Modifying local files while targeting a remote system

2017-11-07 Thread EspressoBeanies
Thanks Kai On Tuesday, November 7, 2017 at 2:19:48 PM UTC-5, Kai Stian Olstad wrote: > > On 07. nov. 2017 20:12, EspressoBeanies wrote: > > Is it possible to modify local files while targeting a remote system in > an > > Ansible YAML file? I'm trying to run an

[ansible-project] Question on using Ansible to upgrade Linux with config file overwrites

2018-11-05 Thread EspressoBeanies
What's the best way to use Ansible to manage software updates where installer config files have the potential to overwrite the config settings you currently have in place? I'm trying to see if there's a way for Ansible to apply software upgrades on all my *NIX machines but notify me when it run

[ansible-project] Re: Apply action for each regexp match found on same line

2018-11-08 Thread EspressoBeanies
John, you can do all instances via the replace command or the last instance from the lineinfile command. On Thursday, November 8, 2018 at 11:14:20 AM UTC-5, John Harmon wrote: > > bump > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To u

[ansible-project] Replace command not picking up on my regex

2018-11-08 Thread EspressoBeanies
I'm trying to use Ansible to add several lines of text after a specific line in a config file using the replace module and for whatever reason when I run the playbook, I get back OK responses instead of CHANGED. Below is the following line in the config file: check_interval 24x7

[ansible-project] Can Ansible execute a Dockerfile on Docker to setup platforms for PXE boots?

2018-11-12 Thread EspressoBeanies
I'd like to setup an HTTP server on a Docker image to serve as a platform for PXE booting and I don't see a clear way for Ansible to be able to execute a Dockerfile on a local Docker instance to spawn an HTTP server. I don't know if it'd be effective to continuously build and destroy a docker i

[ansible-project] Re: call Dockerfiles inside ansible

2018-11-12 Thread EspressoBeanies
>From seeing the available Docker modules, I'd say you can build Docker images, I'm just not sure if you can use Ansible to execute Dockerfiles. The documentation would say so, but it's a bit unclear as to how to achieve this. Not enough good examples. On Wednesday, August 22, 2018 at 1:14:35 P

[ansible-project] Re: call Dockerfiles inside ansible

2018-11-12 Thread EspressoBeanies
Maybe this works: https://docs.ansible.com/ansible-container/migrating.html#migrating-from-a-dockerfile -- 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 ansi