[ansible-devel] Question on PR adding module for ibm dmgr #56945

2019-07-01 Thread Tom Davison
Hi everyone, I have had a PR in for quite some time in the ansible.modules.web_infrastucture project namespace. It is known that the maintainers of that project area get the final call on merging a new module into it. I have been having an issue getting any of the current maintainers to resp

Re: [ansible-devel] How can i get hosts variable value from ansible yaml file for a particular playbook to custom python module?

2019-09-10 Thread Tom Davison
Would the custom module be apart of the same playbook that the host variable is in? Or separate? If it apart of the same playbook My first thought is to pass the j2 host variable nto the custom python module as a parameter, if it is an Ansible module that is. Otherwise you should be able to pass i

Re: [ansible-devel] split FQDN

2019-10-26 Thread Tom Davison
Hi Matt, A solution like this should work for you: - name: "set new hostname fact" set_fact: my_host: "{{ inventory_hostname.split('.')[0] }}.{{ inventory_hostname.split('.')[1] }}.{{ inventory_hostname,split('.')[-1] }}" On Sat, Oct 26, 2019 at 1:18 AM Matti Herrmann wrote: >

Re: [ansible-devel] split FQDN

2019-10-26 Thread Tom Davison
Matti** sorry about the miss spelling On Sat, Oct 26, 2019 at 7:21 AM Tom Davison wrote: > Hi Matt, > > A solution like this should work for you: > >- name: "set new hostname fact" > set_fact: > my_host: "{{ inventory_hostname.split(

[ansible-devel] Ansible J2 unicode

2019-11-05 Thread Tom Davison
Hi everyone. When trying to template out a weblogic wl.properties file, I am running into a Jinja2 template problem. Here is a snippet of code I am running into issues with: # ADDITIONAL MACHINE PROPERTIES

Re: [ansible-devel] Ansible J2 unicode

2019-11-05 Thread Tom Davison
I think you instead want: > > [{{ more_servers }}] > > On Tue, Nov 5, 2019 at 2:11 PM Tom Davison > wrote: > >> Hi everyone. >> >> When trying to template out a weblogic wl.properties file, I am running >> into a Jinja2 template prob

Re: [ansible-devel] ansible tower messing up the order in which inventory hosts gets played

2019-11-21 Thread Tom Davison
My first thought is how do you have your inventory in tower? Does it match the same exact layout as your inventory on the command line? As in server1 is the first entry, server2 the second, etc..? But generally speaking, since inventories may not always be perfectly matched, a better solution wou

Re: [ansible-devel] How to Stop playbook execution based on a file ?

2020-01-24 Thread Tom Davison
Depending on the overall scenario you can use the fail module. Otherwise, you’ll need to put conditionals on all other tasks in the playbook to just skip when the condition is not met. On Fri, Jan 24, 2020 at 14:01 Anand Solomon wrote: > Hi, > I basically wanted to skip the remaining of the play

[ansible-devel] Re: Running a select statement as script using oracle_sql module

2020-01-25 Thread Tom Davison
Hi Anand, I just answered the issue on the ansible oracle module github repo. Please see that answer. On Saturday, January 25, 2020 at 9:04:57 AM UTC-6, Anand Solomon wrote: > > Hi, > I am trying to run a sql script which has simple select statement. (select > username from dba_users). Will or

Re: [ansible-devel] Looking for guidance for a new `homebrew_service` module

2020-02-03 Thread Tom Davison
Hi Lukas, I would suggest looking to make it an Ansible collection. With talking to the core team, it seems that collections are being pushed more and more due to back ups in the core Ansible project PR process. Take a look here for more details: https://docs.ansible.com/ansible/latest/user_guide

Re: [ansible-devel] Passwprd never expierd

2020-02-27 Thread Tom Davison
Please see this module and it’s examples to accomplish your task https://docs.ansible.com/ansible/latest/modules/user_module.html On Thu, Feb 27, 2020 at 01:52 Rishiv Chauhan wrote: > Please help, > > I wanted to create a yml script for the password never expire for a > particuler user. > let

Re: [ansible-devel] how to run command that cannot create files?

2022-11-08 Thread Tom Davison
The ansible file module? https://docs.ansible.com/ansible/latest/collections/ansible/builtin/file_module.html On Tue, Nov 8, 2022 at 10:55 Philipp Ewald wrote: > I dont want to create a script placing files or removing files just to > run one command... > > any ideas? > > > -- > Philipp Ewa