Re: [ansible-project] ansible-navigator : Error with awx_display

2022-10-07 Thread JS G.
epository/ansible/ansible-runner?tab=tags > > > You can take a look at this for guidance: > > https://github.com/antuelle78/ansible-builder-awxee > > Hope that helps. > > Regards, > > Antuelle78 > On 04/10/2022 17:40, JS G. wrote: > > Hello, > > With qu

Re: [ansible-project] ansible-navigator : Error with awx_display

2022-10-04 Thread JS G.
Hello, More example contains *build_arg_defaults / EE_BASE_IMAGE* *But other don't have this variable ... * *I'm going to try buil a nex EE without EE_BASE_IMAGE ..., but in this case, what is base images ?* *Regards; * Le mardi 4 octobre 2022 à 17:40:19 UTC+2, JS G. a écrit

Re: [ansible-project] ansible-navigator : Error with awx_display

2022-10-04 Thread JS G.
> # > time-zone: YourTimeZone > > If it works, then you need to pay attention to the image used. > > You can build your own with ansible-builder. > > Regards, > > Antuelle78 > On 04/10/2022 17:04, JS G. wrote: > > Hello, > > I'm a newbi on ans

[ansible-project] ansible-navigator : Error with awx_display

2022-10-04 Thread JS G.
Hello, I'm a newbi on ansible-navigator. I try to use it, for playbooks developement on VMs before put my playbooks on AWX. I configured ansible-navigator to use awx-ee image with podman. When I launch my playbook bye ansible-navigatror, i have this error : ERROR! Invalid callback for stdout sp

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

2019-01-21 Thread JS
Hi James Apologies, I thought I'd already replied to your message! I've tried the latest version of ansible - still haven't had much luck with the archive module and exclude_path. I've just restored to using the shell module for now to tar it up manually, but it'

[ansible-project] Re: ansible git uri

2019-01-14 Thread JS
Hello Just wanted to let you know this has now been solved. Did not realise --data could be passed in as the body. E.g from SO: curl -k -X POST https://mylink/action -d username=admin - uri: url: https://your.form.based.auth.example.com/index.php method: POST body: "name=your_user

[ansible-project] Re: Accessing a sub-variable from a JSON output

2018-12-19 Thread JS
Hi Eric Brilliant! Thank you very much! - That put me down the right path. Once I understood your syntax, I managed to get all of these to work: - name: debug 0 debug: var: test123 - name: debug 1 debug: var: test123[0].namespace_path - name: debug 2 debug: msg: The value is

Re: [ansible-project] A task is running on a host when it is not meant to

2018-11-21 Thread JS
Hi Kai All sorted! Thank you very much! Regards JS -- 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.co

[ansible-project] A task is running on a host when it is not meant to

2018-11-21 Thread JS
when: ("'bastion-hosts' in group_names") and (item.ssh_key_generate is defined) and item.ssh_key_generate with_items: "{{ users }}" Could you kindly advise where I might be going wrong? Regards JS -- You received this message because you are subscribed to the Google Groups

[ansible-project] exclude_path not working on archive module

2018-10-05 Thread JS
x27;{{ websites_path }}/{{ site01 }}', dest: '{{ remote_backup_path }}/{{ date_time }}/{{ site01 }}/{{ site01 }}.tar.gz', } - { path: '{{ websites_path }}/{{ site02 }}', dest: '{{ remote_backup_path }}/{{ date_time }}/{{ site02 }}/{{ site02 }}.tar.gz' } Would some

[ansible-project] Use regex and variables in a when statement

2018-09-13 Thread JS
" ~ newApp ~ " : Application * has not been disabled yet.")' or - debug: msg: The old application has not been disabled yet when: 'app_enabled_status.stderr is search("Failed to enable application " ~ newApp ~ " : Application ('\w+\d_\d{8}.\d{

Re: [ansible-project] Mail Callback

2018-09-07 Thread JS
Hi Martin Thanks for the swift response! Ah ok, I shall upgrade the Python Version in that case! I am currently running: ansible 2.5.5 Regards JS -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this grou

[ansible-project] Mail Callback

2018-09-07 Thread JS
plugins/callback/mail.py", line 136, in indent return re.sub('^', ' ' * indent, multiline, flags=re.MULTILINE) Any assistance will be much appreciated ! Regards JS -- You received this message because you are subscribed to the Google Groups "Ansible Project" group.

Re: [ansible-project] Changing an extra-vars variable to something else if it gets passed as a blank

2018-09-04 Thread JS
dal_version is defined) and (dal_version != "") Thanks a lot for your assistance! Regards JS -- 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 a

[ansible-project] Changing an extra-vars variable to something else if it gets passed as a blank

2018-08-31 Thread JS
* task path: ok: [linux.local] => { "msg": "Dal version is hello" } Is there a way I can set the same extra-vars variable to something else if it is passed as a blank? Thanks! JS -

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

2017-07-25 Thread JS
> > Hi Kai Ah perfect thanks! I should have know that one! Sorry, didn't realise that it picked that up from the native OS! Cheers JS -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this gro

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

2017-07-25 Thread JS
Hi Kai Thanks for that - it worked like a charm on the CLI! - pre_tasks: - pause: prompt: "You are running against production. What is the magic word?" register: result when: env == 'prod' - fail: msg: "Aborting, wrong magic." when: result.user_input

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 suggesti

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

2017-07-24 Thread JS
his deploy ^ here The error appears to have been in ' /usr/playbooks/roles/websites-backup/tasks/main.yml': line 3, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Gatherin and setting Facts for this

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

2017-07-24 Thread JS
other environments! Regards JS -- 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,

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

2017-07-24 Thread JS
ments! Regards JS On Saturday, 22 July 2017 16:17:58 UTC+1, Kai Stian Olstad wrote: > > On 21.07.2017 18:21, JS wrote: > > I have a single playbook that with various plays in it. > > > > It goes out to different environments, either dev, uat, or prod (based > &g

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

2017-07-21 Thread JS
I can set the ansible-playbook to require a password if a user selects the prod environment? They should be allowed to deploy to dev and uat without any authentication or passwords. Thanks JS -- You received this message because you are subscribed to the Google Groups "Ansible Pro

[ansible-project] Re: On Windows, how can we configure Ansible's modules to go through an HTTP Proxy?

2017-02-16 Thread JS
ot; -name ProxyServer -value "http=gateway:port;https=gateway:port; -type string - set-itemproperty -path "hkcu:Software\Microsoft\Windows\ CurrentVersion\Internet Settings" -name ProxyEnable -value "1" - name: Run curl win_shell: curl http://www.google.com

[ansible-project] On Windows, how can we configure Ansible's modules to go through an HTTP Proxy?

2017-02-16 Thread JS
As per this post on the Ansible Github , how can Ansible be configured to run through an HTTP proxy? Ultimately it is ideal to use the win_chocolatey module through the proxy, but I'm unable to just run a simple curl (i.e curl http://www.google.c

Re: [ansible-project] Gathering list of unique variable values and number of servers with each value

2015-03-19 Thread js
Alright, so it looks like the only way would be to key off a specifically formatted group name? I was hoping to be able to rely on the variable alone. Ideally, an inventory could look like this (no groups): server1 loc_name="location1" server2 loc_name="location1" server3 loc_name="location2" s

Re: [ansible-project] Gathering list of unique variable values and number of servers with each value

2015-03-19 Thread js
Unfortunately, I may have made the example too simple. The actual inventory file has more groups and not all the groups are just locations. Furthermore, the group names are not necessarily the same as the "loc_name" variable. For example, in addition to the location groups, we could have groups

[ansible-project] Gathering list of unique variable values and number of servers with each value

2015-03-18 Thread js
Hi, I have an inventory file set up like this: [loc1] server1 server2 [loc1:vars] loc_name="location1" [loc2] server3 [loc2:vars] loc_name="location2" [loc3] server4 server5 server6 [loc3:vars] loc_name="location3" I want to create a configuration file on all the servers containing all the