clear query| facets| time Search criteria: author:"Dick Visser".   Results from 1 to 10 from 539 (0.0s).
Loading phrases to help you
refine your search...
[expand - 1 more] - [ansible-project] Re: Templating PHP and quoting vars - Ansible - [mail # user]
...I've come up with this custom filter: def phpescape(var, quote='\''):     """Escape a value based on it's type.     This is usefull for templating PHP files, where you need to quote...
...     strings but not booleans/null/etc.     """     if isinstance(var, string_types):         return quote + var + quote     elif var is None:         return 'null'     return var This way I can keep...
... 2017 at 11:52, Dick Visser  wrote: > Hi > > I'm templating PHP configuration files, but having some issues trying > to make variables work that can be different types. > Take for instance...
... be quotes around the value. > The same happens for other variables that can be string or boolean. > > If I add quotes to the template then those will also surround > null/booleans, resulting...
... in working PHP code, but with the wrong > outcome: > > session_cookie_domain: 'null' > > > > What I'm looking for is a way to have jinja add quotes depending on > the type of var that is being...
   Author: Dick Visser , 2017-07-29, 11:00
[expand - 1 more] - [ansible-project] Need to Replace single quote with double quotes in Ansible - Ansible - [mail # user]
...On Mon, 26 Aug 2019 at 18:19, Dick Visser  wrote: > > On Mon, 26 Aug 2019 at 11:03, Mohtashim S  wrote: > > > > I have a multiline variable "filedet" that contains string text having...
... multiple single quotes. > > > > I wish to replace the single quote to double quotes so that It can be acceptable for SQL query and below is what I tried. > > > >     filedet: "{{ ( filedet...
... that you're getting an error. It would have been nice to report that. In any case, what you have now will result in a loop. I you really must, you can replace the single quotes with double quotes...
... by:  doubles: "{{ filedet | regex_replace(\"'\", '\"') }}" Not sure why you're putting parentheses around the variable? Dick -- Dick Visser Trust & Identity Service Operations Manager GÉANT -- ...
   Author: Dick Visser , 2019-08-26, 16:37
[expand - 3 more] - Help: cant get Ansible blockinfile to work - Ansible - [mail # user]
...Those changes are to ensure compatibility and consistency, and are harmless. Dick On Tue, 29 Oct 2019 at 19:44, Michael  wrote: > Visser, you are right, i truncated the file but i am...
... including the > complete file below this reply. > > Using the solution you provided got me somewhere but i noticed that some > changes in the file with respect to change from double to single quotes...
... requests --> >                 >         > > > On Tuesday, October 29, 2019 at 10:48:36 AM UTC-4, Dick Visser wrote: >> >> On Tue, 29 Oct 2019 at 15:32, Dick Visser  wrote: >> > >> > Thanks...
..."] >>        state: absent >> >> >> Note that you'd have to "pip install lxml" or equivalent for the xml >> module to work. >> >> >> >> >> >> -- >> Dick Visser >> Trust & Identity Service Operations Manager...
   Author: Dick Visser , 2019-10-29, 21:29
[expand - 1 more] - unable to create directory using ansible file module - Ansible - [mail # user]
...Ah OK yes, i see, you're right. The issue is your quoting, as indicated by the error message. Instead of:    - file: path="{{ playbook_dir }}/dashboard/{{ my_result.name }} state=directory...
... the correct desired directory that should be created. > > Please suggest. > > > On Monday, March 16, 2020 at 1:00:24 PM UTC+5:30, Dick Visser wrote: >> >> Hi >> >> you've missed a few basic things...
.... >> > To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0fe8246b-1d71-44c4-baa0-6185815366a1%40googlegroups.com. >> >> >> >> -- >> Dick Visser >> Trust...
...-4f0e-940a-a185f1a34ba6%40googlegroups.com. -- Dick Visser Trust & Identity Service Operations Manager GÉANT -- ...
   Author: Dick Visser , 2020-03-16, 07:57
[expand - 1 more] - How to filter ipaddress and hostname and store it to different variable - Ansible - [mail # user]
...] ***************************************************************************************************** > fatal: [lab1]: FAILED! => {"msg": "Unexpected templating type error occurred on ({{ ip_addr.split(\n) |  regex_search('^[a-z].*')  }}): expected string or buffer"} You didn't quote the newline...
...-Z]+(-[a-zA-Z]+)*\\.)+[a-zA-Z]{2,}$') | list }}"     - debug:  var=host_list This should give you some results. Dick -- Dick Visser Trust & Identity Service Operations Manager GÉANT...
   Author: Dick Visser , 2019-06-24, 18:43
docker_container env from file - Ansible - [mail # user]
... value found for env option. Ambiguous env options must be wrapped in quotes to avoid them being interpreted. Key: include_vars"} > > > there is a way to populate env from a file? > > Thanks...
...%40googlegroups.com. -- Dick Visser Trust & Identity Service Operations Manager GÉANT -- ...
   Author: Dick Visser , 2020-05-18, 14:43
[expand - 2 more] - Re: mapping AWS 'Username' tag to ansible_user inventory var? - Ansible - [mail # user]
...I had a look at the ec2.py code and I was able to add this as a feature: https://github.com/ansible/ansible/pull/65070 thx!! On Tue, 19 Nov 2019 at 15:01, Dick Visser  wrote: > > On Tue...
..., 19 Nov 2019 at 14:45, Dick Visser  wrote: > > > [tag_Username_admin:centos] > > ansible_user=centos > > This last entry should of course read: > > [tag_Username_centos:vars] > ansible_user...
...=centos -- Dick Visser Trust & Identity Service Operations Manager GÉANT -- ...
   Author: Dick Visser , 2019-11-19, 16:01
[expand - 1 more] - Re: strategy=free with adhoc? - Ansible - [mail # user]
...prefixing the whole adhoc line with "ANSIBLE_STRATEGY=free" does the trick! On Mon, 13 Apr 2020 at 12:46, Dick Visser  wrote: > > Hi > > For simple fire & forget commands with ansible...
... this? > > thx > > -- > Dick Visser > Trust & Identity Service Operations Manager > GÉANT -- Dick Visser Trust & Identity Service Operations Manager GÉANT -- ...
   Author: Dick Visser , 2020-04-13, 10:53
[ansible-project] Trouble with quoting variables - Ansible - [mail # user]
...), and then combine to_json and quote. On Thu, 2 Jul 2020 at 14:05, Ed Greenberg  wrote: > > I have a shell command with json on it. I need some assistance, please, in quoting it properly...
... it might be an issue with > missing quotes. Always quote template expression brackets when they > start a value. For instance: > >     with_items: >       - {{ foo }} > > Should be written...
... as: > >     with_items: >       - "{{ foo }}" > > > I've tried quoting the entire thing with both single quotes and then with  double quotes, escaping the embedded quotes with backslashes. I've tried putting...
... quotes in jinja curlies. such as {{ '"' }} .  Just about every permutation I can think of. > > Is this even possible?  Should I put the aws command in a shell script and run that?   Inquiring...
.../78a51375-524b-4b83-9188-0fadbb22597bo%40googlegroups.com. -- Dick Visser Trust & Identity Service Operations Manager GÉANT -- ...
   Author: Dick Visser , 2020-07-02, 13:21
[expand - 2 more] - json_query/jmespath filtering question - Ansible - [mail # user]
...(@, `host2restore_1`)].virtualDiskId') }}): expected string or buffer" > } > > On Wednesday, March 11, 2020 at 5:32:33 PM UTC-5, Dick Visser wrote: >> >> The query for json_query is between single quotes...
.... But you also use >> single quotes to quote 'host2restore_1' - that doesn't work. >> You need to use backticks instead. >> If you look closely you can see that those were in the previous >> example...
... 10, 2020 at 4:05:15 PM UTC-5, Dick Visser wrote: >> >>> >> >>> You need to filter a variable through json_query. >> >>> Also, I don't see any key called 'snapshotdetails...
.... >> >>> >> >>> >> >>> >> >>> -- >> >>> Dick Visser >> >>> Trust & Identity Service Operations Manager >> >>> GÉANT >> > >> > -- >> > You received this message because you are subscribed to the Google Groups "Ansible Project" group...
...-project/c49e57b6-43a5-4f64-a645-a121d7733eda%40googlegroups.com. >> >> >> >> -- >> Dick Visser >> Trust & Identity Service Operations Manager >> GÉANT > > -- > You received this message because...
   Author: Dick Visser , 2020-03-11, 23:30