Re: [ansible-project] How to run multiple playbooks concurrently in parallel

2024-06-10 Thread wpgpo...@gmail.com
;server=job2" --limit runtime-host-group & > ansible-playbook main_job.yml -e "server=job3" --limit runtime-host-group & > ansible-playbook main_job.yml -e "server=job4" --limit runtime-host-group & > wait > > > On 6/7/24 5:46 PM, wpgpo...@gm

[ansible-project] How to run multiple playbooks concurrently in parallel

2024-06-07 Thread wpgpo...@gmail.com
Hello Group, Is there a way that I can run a playbook concurrently? Currently, if I'm running the script with multiple playbook (2x or 3x or so), it will run and finish the first playbook before proceeding on the next playbook in the line. The idea is that I want to run a script that has multi

Re: [ansible-project] Variable within the variable

2024-06-07 Thread wpgpo...@gmail.com
et hosts /home/mule directory, but the second task > is copying directories from the ansible controller's /home/fuser tree to > the target hosts without specifying group, owner, or mode. > > Anyway, this is one answer to how to deal with the looping. You'll need

[ansible-project] Variable within the variable

2024-05-30 Thread wpgpo...@gmail.com
Hello Group, Requesting for any help and guidance on how I can able to use the variable within the variables. I have the variable (fuser_dirname) that I'd usually used as the main variable in my playbook. However, I'd just need to have another variable with the list of the car name to make it

Re: [ansible-project] Variables on Extra-Vars within Extra-Vars-File

2023-09-14 Thread wpgpo...@gmail.com
Yes, that is what I'm actually doing by putting the same value. Thank you On Thursday, September 14, 2023 at 2:50:24 PM UTC-5 Brian Coca wrote: > No, buton the other hand... its still shell: > > ansible-playbook -i localhost -e "test=var1 > some=${THIS_IS_AN_ENV_VAR}" -e > "@files/dev/sample_${T

[ansible-project] Variables on Extra-Vars within Extra-Vars-File

2023-09-14 Thread wpgpo...@gmail.com
Hello Groups, Is there any way that we can have a variable within a variable-file? Example: ansible-playbook -i localhost -e "test=var1 some=ex_1" -e "@files/dev/sample_ex_1.yml" Desired: ansible-playbook -i localhost -e "test=var1 some=ex_1" -e "@files/dev/sample_{{ some }}.yml" Thank you.

[ansible-project] Unable to Connect to Remote Host but Connecting to Local Server

2023-03-01 Thread wpgpo...@gmail.com
Hello... Looking for help and support on my issue in connecting to remote host. Basically, I can able to ssh to remote host but when trying to run an ansible ad-hoc to test my connection, it couldn't connect to the remote host but instead the result is the local server. *here's the snapshot

Re: [ansible-project] Re: Pull of List in a Variable File as Extra-Vars

2022-08-05 Thread wpgpo...@gmail.com
Hello Vladimir, It does works successfully. Many thanks and highly appreciated. This thread is RESOLVED. Thanks... WP On Thursday, August 4, 2022 at 7:35:34 PM UTC-5 vbo...@gmail.com wrote: > > On Wednesday, August 3, 2022 at 5:02:16 PM UTC-4 wpgpo...@gmail.com &

[ansible-project] Re: Pull of List in a Variable File as Extra-Vars

2022-08-04 Thread wpgpo...@gmail.com
up name >> >> vars_files: >> - general_var.yml >> >> *- "{{ ansible_limit }}.yml"* >> - patch_file.yml >> >> -- >> Walter Rowe, Chief >> Infrastructure Services >> Office of Information Systems Management &g

[ansible-project] Re: Pull of List in a Variable File as Extra-Vars

2022-08-04 Thread wpgpo...@gmail.com
s > Office of Information Systems Management > National Institute of Standards and Technology > United States Department of Commerce > > On Thursday, August 4, 2022 at 12:52:07 PM UTC-4 wpgpo...@gmail.com wrote: > >> Thank You, Walter. >> It does work as expected however, I

[ansible-project] Re: Pull of List in a Variable File as Extra-Vars

2022-08-04 Thread wpgpo...@gmail.com
lib/user >> - /home/*take-care*-awssandbox001.us.com-123/lib/user >> >> Appreciated. >> >> Thanks, >> WP >> >> On Thursday, August 4, 2022 at 8:11:49 AM UTC-5 walte...@nist.gov wrote: >> >>> Are you getting an error? Can we see

[ansible-project] Re: Pull of List in a Variable File as Extra-Vars

2022-08-04 Thread wpgpo...@gmail.com
Walter Rowe, Chief > Infrastructure Services > Office of Information Systems Management > National Institute of Standards and Technology > United States Department of Commerce > > On Wednesday, August 3, 2022 at 5:02:16 PM UTC-4 wpgpo...@gmail.com wrote: > >> Hello Team, >>

[ansible-project] Pull of List in a Variable File as Extra-Vars

2022-08-03 Thread wpgpo...@gmail.com
Hello Team, Can I ask some help on how to pull items as Extra-Vars? So, here is the scenario. *dirname.yml* dir_list: - hello - goodbye - take-care *patch_file.yml* patch_lib: - lib_1 - lib_2 *general_var.yml* main_dir: "{{ app_name }}-{{ ansible_hostname }}-{{ ver }}" *main_playbook

[ansible-project] Use of VARS and Register at the same time

2020-08-16 Thread wpgpo...@gmail.com
Hello, Appreciated of any Help I'm looking for any approached or solution that a Variable (VARS) and Register would be able to use in one TASK Copy Module. here's my Code as example... Basically, I need to copy all cfile in multiple remote target directories. @copy.yml --- - host: localhost

[ansible-project] Re: How can I roll out files to multiple remote /home/* directories?

2020-08-14 Thread wpgpo...@gmail.com
Hello, Have you able to resolved your issue? Any idea or happy to share. Thanks, Erwin On Tuesday, September 17, 2019 at 6:18:24 AM UTC-5 scorp123 wrote: > I have this playbook to roll out "dot" config files: > > --- - hosts: linuxboxes tasks: - name: Update .* config files in $HOME > copy: s

[ansible-project] Re: Jinja2 Template to use as SRC Path

2020-07-29 Thread wpgpo...@gmail.com
pprops_file > variable which is different for each host. > > Hope this helps, > > Jon > > On Sunday, July 26, 2020 at 8:34:07 PM UTC+1, wpgpo...@gmail.com wrote: > >> Hello Group, >> >> Requesting for advise or solution. >> The idea/objecti

[ansible-project] Jinja2 Template to use as SRC Path

2020-07-26 Thread wpgpo...@gmail.com
Hello Group, Requesting for advise or solution. The idea/objective is to have the specific filename to copy to the specific node as the SRC path. *Filename* node1-appprops.config node2-appprops.config *Server Host* app_server_node1 app_server_node2 *SRC Patch* /ConfigurationFolder/WrapperConf