Re: [ansible-project] what is the default for DEFAULT_GATHER_TIMEOUT?

2024-03-25 Thread Brian Coca
Sadly, there is not a simple answer, this setting has always been overloaded for 2 uses: - total time a 'subfact' gathering will take: system, local, networking, etc, though this list is never clear to the user .. or really in the code. - total time a particular fact (really only disk/device

Re: [ansible-project] what is the default for DEFAULT_GATHER_TIMEOUT?

2024-03-25 Thread Todd Lewis
Hey Dick, This bit seems to be confusing: DEFAULT_GATHER_TIMEOUT Description: Set the timeout in seconds for the implicit fact gathering, see the module documentation for

[ansible-project] what is the default for DEFAULT_GATHER_TIMEOUT?

2024-03-25 Thread Dick Visser
Hii While upgrading ansible we run into a deprecation warning: [DEPRECATION WARNING]: DEFAULT_GATHER_TIMEOUT option, the module_defaults keyword is a more generic version and can apply to all calls to the M(ansible.builtin.gather_facts) or M(ansible.builtin.setup) actions, use module_defaults

Re: [ansible-project] What characters are allowed in a vault-id?

2024-01-30 Thread Nico Kadel-Garcia
On Tue, Jan 30, 2024 at 9:35 AM Brian Coca wrote: > > No explicit limitations exist, but now that you ask I'm thinking there > should be. Syntactic sugar is always an issue with configuration tools. Punctuation like "@", "$", ",", "!", quotation marks and anything that may be interpreted on the

Re: [ansible-project] What characters are allowed in a vault-id?

2024-01-30 Thread Brian Coca
No explicit limitations exist, but now that you ask I'm thinking there should be. -- -- Brian Coca (he/him/yo) -- 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

[ansible-project] What characters are allowed in a vault-id?

2024-01-30 Thread Dick Visser
As it says on the tin. What are the requirements for a vault-id? Length? Characters? What not? Looking at the docs I'm guessing it cannot contain @ or ; but is there more? thx Dick -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

Re: [ansible-project] what is ansible.builtin.file vs just file module

2023-10-25 Thread Sameer Modak
Thanks a lot Brian. Your explanation cleared my views. On Friday, October 20, 2023 at 8:44:16 PM UTC+5:30 Brian Coca wrote: > short answer: > Because collections > > long answer: > Since we added the 'collections' feature we also introduced > namespaces, including for the modules that existed

Re: [ansible-project] what is ansible.builtin.file vs just file module

2023-10-20 Thread Brian Coca
short answer: Because collections long answer: Since we added the 'collections' feature we also introduced namespaces, including for the modules that existed before collections (version 2.9), they CAN still use the 'short name' or 'module name' as you called it, even for modules that were

Re: [ansible-project] what is ansible.builtin.file vs just file module

2023-10-20 Thread Veera
In FCQN , "builtin" exists for only ansible's builtin(native) modules . We have other modules too from community or vendors .. https://docs.ansible.com/ansible/latest/collections/index_module.html On Friday, October 20, 2023 at 4:53:19 PM UTC+5:30 Rowe, Walter P. (Fed) wrote: > It is now

Re: [ansible-project] what is ansible.builtin.file vs just file module

2023-10-20 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
It is now recommended that all modules be called by their FQCN (fully qualified community name). These ansible.builtin.file and file are the same, but ansible.builtin.file will always guarantee which file module you mean to reference in case some other community package also has a module named

[ansible-project] what is ansible.builtin.file vs just file module

2023-10-20 Thread Sameer Modak
Hello Team, I just want to know why we have builtin for all modules in ansible earlier it was just module name -- 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

Re: [ansible-project] What do you think about my first ansible role?

2023-08-30 Thread Dick Visser
Hii This list is more intended for help with specific ansible problems, not to review generic content without any context. If you have specific questions, then please ask those. Also, sending binaries is a red flag for obvious reasons... On Wed, 30 Aug 2023 at 15:57, Robert wrote: > Hello >

[ansible-project] What do you think about my first ansible role?

2023-08-30 Thread Robert
Hello Can you tell what do you think about my first ansible role for configuring ssh service? I'm asking about code review. Thanks -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails

Re: [ansible-project] what determines which version of ansible is invoked when running ansible

2023-08-16 Thread dmastrop
Thanks Will Yes it is using zsh (in the VSCode). The VSCode has a few extra items in the path in addition to the Mac Terminal but these are repeats. I agree that just adding that to the front of the path is too risky. I know there's other stuff that is using the older python. I will set up an

Re: [ansible-project] what determines which version of ansible is invoked when running ansible

2023-08-15 Thread Will McDonald
I don't have a Mac handy but your default shell is probably zsh. Outside of Vscode, zsh will setup the PATH based on the following startup files: https://zsh.sourceforge.io/Intro/intro_3.html Check which of those files exist in /Users/xx/ and contains logic to set your PATH. If you add

Re: [ansible-project] what determines which version of ansible is invoked when running ansible

2023-08-15 Thread dmastrop
Thanks Will I found the binary for the pip installed latest version of ansible. It seems to finally work fine It is located here: */Users/x/Library/Python/3.11/bin* % ./ansible --version ansible [core 2.15.2] config file = None configured module search path =

Re: [ansible-project] what determines which version of ansible is invoked when running ansible

2023-08-09 Thread Will McDonald
It'll be whichever installed ansible is first in your PATH and is executable. Here's a simple example: $ echo $PATH /usr/local/bin:/usr/bin $ ll /usr/local/bin/wtf /usr/bin/wtf -rwxr-xr-x 1 root root 35 Aug 9 23:48 /usr/bin/wtf* -rwxr-xr-x 1 root root 41 Aug 9 23:48 /usr/local/bin/wtf* $ cat

[ansible-project] what determines which version of ansible is invoked when running ansible

2023-08-09 Thread dmastrop
hi I have 2 versions of ansible installed on my Mac.(it was not intentional) One version was not installed through pip and the other version was installed through pip. I had to manually fix some permissions issues and now that those are addressed my terminal (VSCode) invokes the older version

Re: [ansible-project] what data is transmitted by SSH to the agent host?

2023-05-03 Thread didilong
I feel you, thanks for your answer!! Andrew Latham 在 2023年5月2日 星期二上午9:44:00 [UTC+8] 的信中寫道: > Using the Raw module it can be shell but most of the time > https://docs.ansible.com/ansible/latest/dev_guide/developing_program_flow_modules.html#ansiballz-framework > > Network device modules vary. >

Re: [ansible-project] what data is transmitted by SSH to the agent host?

2023-05-01 Thread Andrew Latham
Using the Raw module it can be shell but most of the time https://docs.ansible.com/ansible/latest/dev_guide/developing_program_flow_modules.html#ansiballz-framework Network device modules vary. On Mon, May 1, 2023 at 7:35 PM didilong wrote: > Sorry, I'm an ansible newbie. When Ansible is

[ansible-project] what data is transmitted by SSH to the agent host?

2023-05-01 Thread didilong
Sorry, I'm an ansible newbie. When Ansible is running, what data is transmitted by SSH to the agent host? Is it a shell directive or python ? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving

Re: [ansible-project] what s the use of % set with ansible

2022-07-08 Thread Abhijeet Kasurde
Another easy solution - but you need to know value to drop before hand - name: Print variable set_fact: new_name: "{{ name.split(':') | reject('search', 'hi') }}" vars: name: "ab:hi:je:et" On Fri, Jul 8, 2022 at 12:48 PM Abhijeet Kasurde wrote: > You can remove

Re: [ansible-project] what s the use of % set with ansible

2022-07-08 Thread Abhijeet Kasurde
You can remove nth element like - like in following case I am removing 2nd element - name: Print variable set_fact: my_new_list: | {% set result = name.split(':') %} {% set _ = result.pop(2) %} {{ result }} On Thu, Jul 7, 2022 at 11:37 PM

Re: [ansible-project] what s the use of % set with ansible

2022-07-07 Thread gomz arvind
@abhijeet and @brian ..thanks for ur responses @abhijeet- I was trying to remove a nth element from the array..so I have tried with popup @brian : this is my understanding from ur tips..correct me if I am wrong {% set var =value %} should we consider var is used only once if we use %.? if

Re: [ansible-project] what s the use of % set with ansible

2022-07-07 Thread Brian Coca
To further explain, {% set var =value %} will only have an effect within that template, that does not create/update ansible variables. So while it does 'work' , you should really only use it inside a full jinja2 template. -- -- Brian Coca -- You received this message because you are

Re: [ansible-project] what s the use of % set with ansible

2022-07-07 Thread Abhijeet Kasurde
I am assuming you want to split a string and set the value of that to a variable, then no need to use jinja templates ``` --- - hosts: localhost gather_facts: no vars: name: "ab:hi:je:ee" tasks: - name: Print variable set_fact: my_var: "{{ (name.split(':') |

Re: [ansible-project] what s the use of % set with ansible

2022-07-07 Thread gomz arvind
--- - name: Cisco NXOS hosts: all connection: network_cli gather_facts: false vars: - cmdlist: sh clock - ansible_python_interpreter: /usr/bin/python3 - ansible_network_os: nxos - project: tasks: - name: Execute command nxos_command:

Re: [ansible-project] what s the use of % set with ansible

2022-07-06 Thread Abhijeet Kasurde
Could you please provide more context, examples, error logs, or use case? The amount of information you provided is too little to answer anything. On Wed, Jul 6, 2022 at 2:39 PM gomz arvind wrote: > Hi team, > > can i know the actual usage of % set with ansible > > -- > You received this

[ansible-project] what s the use of % set with ansible

2022-07-06 Thread gomz arvind
Hi team, can i know the actual usage of % set with ansible -- 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

Re: [ansible-project] What should be done for the sorry state of the google.cloud collection?

2022-05-25 Thread tterr...@gmail.com
I opened an issue: https://github.com/ansible-community/community-topics/issues/105 On Tuesday, May 24, 2022 at 4:55:55 PM UTC+3 Brian Coca wrote: > FYI, the collection is 'owned' by Google itself. > > > -- > -- > Brian Coca > > -- You received this message because you are subscribed

Re: [ansible-project] What should be done for the sorry state of the google.cloud collection?

2022-05-24 Thread Brian Coca
FYI, the collection is 'owned' by Google itself. -- -- Brian Coca -- 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

Re: [ansible-project] What should be done for the sorry state of the google.cloud collection?

2022-05-20 Thread 'Felix Fontein' via Ansible Project
Hi, > - had only one commit the past 6 months there were actually two, and two more a bit more than 6 months ago. But I know what you mean. Also a "bug fixes" commit which simply removes a CI workflow and doesn't do anything else doesn't really count as a useful change to the collection :) > -

[ansible-project] What should be done for the sorry state of the google.cloud collection?

2022-05-20 Thread tterr...@gmail.com
Hello, The google.cloud collection: - had only one commit the past 6 months - no release for almost 1.5 years - 90 open and completely unanswered issues - 26 pull requests ignored - does not support hundreds of APIs and operations for google cloud. Also, ansible was removed from the magic

Re: [ansible-project] What all things are been installed in isolated node in ansible tower to execute the jobs?

2021-11-18 Thread Komal Suthar
Thanks On Thu, Nov 18, 2021, 6:14 PM Dick Visser wrote: > I don't understand everything in your question, but from the keywords I > guess you're asking how ansible tower works. > This is the ansible mailing list. > You will probably get a better response on the dedicated awx list: >

Re: [ansible-project] What all things are been installed in isolated node in ansible tower to execute the jobs?

2021-11-18 Thread Dick Visser
I don't understand everything in your question, but from the keywords I guess you're asking how ansible tower works. This is the ansible mailing list. You will probably get a better response on the dedicated awx list: https://groups.google.com/g/awx-project On Thu, 18 Nov 2021 at 12:00, Komal

[ansible-project] What all things are been installed in isolated node in ansible tower to execute the jobs?

2021-11-18 Thread Komal Suthar
What all things are been installed in isolated node in ansible tower to execute the jobs as we don't install the tower in the Isolated node Itself and still the controller give the jobs to run so what are that all things does anybody know? -- You received this message because you are subscribed

Re: [ansible-project] what does this mean?

2020-11-03 Thread Brian Coca
As the message says `(requests) on myesxserver's Python /usr/bin/python3` , this is not pip itself but the python library 'requests' which you might have an OS package for or you can use pip3 to install and this needs to be on the target machine (myesxserver) which is actually executing the code.

Re: [ansible-project] what does this mean?

2020-10-25 Thread PRAVEEN KATTULAPALLI
Firstly try to install pip package on the local machine using proper commend yum/apt-get install python-pip On Sun, 25 Oct, 2020, 20:26 vinoth kumar, wrote: > You need to have a proper pip package on local machine / target machine to > run your modules (not for all module if you check in

Re: [ansible-project] what does this mean?

2020-10-25 Thread vinoth kumar
You need to have a proper pip package on local machine / target machine to run your modules (not for all module if you check in module documentation full fill prerequisites) Here you need to do pip install requests //vinoth On Sun 25. Oct 2020 at 15:15, Tony Wong wrote: > > Keep getting this

[ansible-project] what does this mean?

2020-10-25 Thread Tony Wong
Keep getting this error when running my playbook The full traceback is: Traceback (most recent call last): File

Re: [ansible-project] What should be the Desired output of the ad-hoc command "ansible -m ping -all" ?

2020-10-03 Thread Dick Visser
pong On Sat, 3 Oct 2020 at 13:59, Prabhakaran Karuppaih wrote: > > I am getting errors, but > > very very interested to see How should be the Expected Output do look like... > > With Hope, > Prabhakaran > > -- > You received this message because you are subscribed to the Google Groups >

[ansible-project] What should be the Desired output of the ad-hoc command "ansible -m ping -all" ?

2020-10-03 Thread Prabhakaran Karuppaih
I am getting errors, but very very interested to see How should be the Expected Output do look like... With Hope, Prabhakaran -- 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

Re: [ansible-project] what does this command Mean?

2020-10-02 Thread Avinash Jadhav
Hello Prabhakaran, What exactly you want try is it ping or any other task Please add the host/ target IP or DNS in hosts files the perform below operation If ping then try 1 create playbookdemo.yml 2 copy below code and paste playbookdemo.yml --- - name: "Get ping response" hosts:

[ansible-project] what does this command Mean?

2020-10-02 Thread Prabhakaran Karuppaih
ansible -m ping all Why am I getting the same warnings and Errors when I tried running my Playbook? (starfish.yml) So, that means: My Playbook is Right? But something important is Not. What is that? Please Help...Thank You. With Hope, Prabhakaran The following are the Warnings and Errors:

Re: [ansible-project] What is the right tool to make yml files on Windows 10?

2020-09-23 Thread Dick Visser
On Wed, 23 Sep 2020 at 10:00, Prabhakaran Karuppaih wrote: > My core learning is not with ansible. I just want to run some Playbooks...(On > CentOS 7) to install Asterisk on the same and Mastering the Asterisk tool... But this list is for help with ansible issues. If you want to avoid

Re: [ansible-project] What is the right tool to make yml files on Windows 10?

2020-09-23 Thread Karl Auer
Any text editor will work, but don't use a word-processor. You need to generate plain ascii files. If you can afford the slight learning curve, see if you can find a programming editor you like. Visual Studio Code is free, multi-platform and excellent, but there are plenty of others that will

[ansible-project] What is the right tool to make yml files on Windows 10?

2020-09-23 Thread Prabhakaran Karuppaih
You know... There must be some Software tool like Notepad, Wordpad or Microsoft Word.. How about Atos? Or Notepad++ Maybe.. My core learning is not with ansible. I just want to run some Playbooks...(On CentOS 7) to install Asterisk on the same and Mastering the Asterisk tool... With Hope,

Re: [ansible-project] What privilege required for an ansible user able to configure a server

2020-08-13 Thread Stefan Hornburg (Racke)
On 8/13/20 5:33 PM, Edison Wang wrote: > Hi Luca:  > >    I've added that command become: yes like you and Stefan said, and make my > playbook as simple as below for a test. But > after I run this playbook where I didn't see any error, I still couldn't see > the new user "edison" created on

Re: [ansible-project] What privilege required for an ansible user able to configure a server

2020-08-13 Thread Edison Wang
Hi Luca: I've added that command become: yes like you and Stefan said, and make my playbook as simple as below for a test. But after I run this playbook where I didn't see any error, I still couldn't see the new user "edison" created on target server. However if I run this playbook on my

Re: [ansible-project] What privilege required for an ansible user able to configure a server

2020-08-13 Thread Luca 'remix_tj' Lorenzetto
Hello, On Thu, Aug 13, 2020 at 2:30 PM Edison Wang wrote: > Hi There, > > I am pretty new in this domain and got a question to ask. My goal is to > create a new user "edison" on a Ubuntu server. Now I've already had a user > "manager" which is able to ssh to this Ubuntu server. This problem I

Re: [ansible-project] What privilege required for an ansible user able to configure a server

2020-08-13 Thread Stefan Hornburg (Racke)
On 8/13/20 2:30 PM, Edison Wang wrote: > Hi There, > > I am pretty new in this domain and got a question to ask. My goal is to > create a new user "edison" on a Ubuntu server. > Now I've already had a user "manager" which is able to ssh to this Ubuntu > server. This problem I got is after I run

[ansible-project] What privilege required for an ansible user able to configure a server

2020-08-13 Thread Edison Wang
Hi There, I am pretty new in this domain and got a question to ask. My goal is to create a new user "edison" on a Ubuntu server. Now I've already had a user "manager" which is able to ssh to this Ubuntu server. This problem I got is after I run user creation role with user "manager" as

Re: [ansible-project] What is the ansible_network_os for FXOS devices.

2020-07-09 Thread Vanshika Sagar
Here you go :- https://developer.cisco.com/docs/ftd-ansible-v6-3/#!introduction-to-ftd-ansible/introduction-to-ansible-modules-for-ftd-6-3-0 Thanks Ashish On Thu, Jul 9, 2020 at 2:45 PM Susethira Ramamoorthy wrote: > Is there any way to automate the FXOS Firepower 2130 devices using >

[ansible-project] What is the ansible_network_os for FXOS devices.

2020-07-09 Thread Susethira Ramamoorthy
Is there any way to automate the FXOS Firepower 2130 devices using ansible? Please reply me for the same -- 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

Re: [ansible-project] What does the output from the dynamic inventory software look like?

2020-06-10 Thread Vladimir Botka
> > - hosts: localhost > > tasks: > > - add_host: > > hostname: "{{ remote_host }}" > > groups: my_group_01 > > sw: "{{ pkg }}" > > > > - hosts: my_group_01 > > tasks: > > - debug: > > msg: Install {{ sw }} on {{

Re: [ansible-project] What does the output from the dynamic inventory software look like?

2020-06-10 Thread Martin Ward
Thanks for the response Vladimir. I had actually found and tried using that code, it works fine for a single prompt but not for two, or at least not where there second input variable is used in a role name. I was after: --- - hosts: localhost connection: local gather_facts: false

Re: [ansible-project] What does the output from the dynamic inventory software look like?

2020-06-10 Thread Martin Ward
Thanks Matt, that looks exactly like what I need. |\/|artin On Tuesday, 9 June 2020 21:25:29 UTC+1, Matt Martz wrote: > > This is largely documented at > https://docs.ansible.com/ansible/latest/dev_guide/developing_inventory.html#developing-inventory-scripts > > Additionally there is a JSON

Re: [ansible-project] What does the output from the dynamic inventory software look like?

2020-06-09 Thread Vladimir Botka
On Tue, 9 Jun 2020 13:20:19 -0700 (PDT) Martin Ward wrote: > ... ideally after prompting the user for this information. > ... ask the user for the IP address of the remote server and also the > software they want to install? This is an example of the playbook you might be looking for, I think

Re: [ansible-project] What does the output from the dynamic inventory software look like?

2020-06-09 Thread Matt Martz
This is largely documented at https://docs.ansible.com/ansible/latest/dev_guide/developing_inventory.html#developing-inventory-scripts Additionally there is a JSON schema file describing the JSON data structure for inventory scripts located at

[ansible-project] What does the output from the dynamic inventory software look like?

2020-06-09 Thread Martin Ward
Hi, I am running Ansible 2.9.7 and am looking at the dynamic inventory scripts. I don't have any of the various software listed (AWS, OpenStack etc) in the examples section and I need something where I can automatically set the remote IP address at the time that the playbook is executed,

Re: [ansible-project] What are the possible setups for ansible in the cloud to configure on premise devices?

2020-05-23 Thread David Foley
> > >>- What is your Cloud Service Provider that this PoC will take place ? >> - Using just "OpenVPN" Soultion on a cloud provider isn't best >> practice when it comes to Security you can download an OpenVPN >> instance on >> EC2 market, but you may have better option

Re: [ansible-project] What are the possible setups for ansible in the cloud to configure on premise devices?

2020-05-22 Thread Nicolas Charalambous
Hello Dick, Thank you for your reply, I know the setup is a bit atypical but the "question" came from the university. So I had to find a solution to set it up and I know it wasn't the most optimal solution that I did. If the ansible server was also on premise it would have been a piece of

Re: [ansible-project] What are the possible setups for ansible in the cloud to configure on premise devices?

2020-05-17 Thread Vladimir Botka
On Sun, 17 May 2020 08:13:16 -0700 (PDT) Nicolas Charalambous wrote: > "How do I use Ansible in a production environment to configure a large > number of on-premise devices via a cloud environment?" An elegant and flexible solution would be to build the architecture on "ansible-pull" (similar

Re: [ansible-project] What are the possible setups for ansible in the cloud to configure on premise devices?

2020-05-17 Thread Dick Visser
Hi This sounds a bit atypical tbh. It's more common (and useful imho) to do it the other way around. You have an "on-prem" ansible control node, which is used to configure cloud based VMs. I wonder what the usecase for your setup is? As you already found out, you will have to set up and manage

[ansible-project] What are the possible setups for ansible in the cloud to configure on premise devices?

2020-05-17 Thread Nicolas Charalambous
Hello guys, I'm in the last year of my studies and the question in the title is to help me write my bachelor thesis. My bachelor thesis is part a technical research(make a proof of concept.) and literature study. The research that I did was based around 1 question: "How do I use Ansible in

Re: [ansible-project] what is set_when_task_skipped=false replacment in ansible 2.9?

2020-05-04 Thread Matt Martz
There is no way to prevent registering if the task is skipped. You should register to different variable names to avoid overwriting. On Mon, May 4, 2020 at 4:16 PM Meir Yanovich wrote: > basically, after looking into the entire internet again when regarding to > ansible i see that there is no

Re: [ansible-project] what is set_when_task_skipped=false replacment in ansible 2.9?

2020-05-04 Thread Meir Yanovich
basically, after looking into the entire internet again when regarding to ansible i see that there is no info or no simple answer on : "how to not set the register variable when the task is skipped " so what is the standard way ? On Monday, May 4, 2020 at 9:58:02 PM UTC+3, Matt Martz wrote: > >

Re: [ansible-project] what is set_when_task_skipped=false replacment in ansible 2.9?

2020-05-04 Thread Meir Yanovich
as i see it used to be or it merged and then removed https://github.com/ansible/ansible/pull/8062 On Monday, May 4, 2020 at 9:58:02 PM UTC+3, Matt Martz wrote: > > set_when_task_skipped=false is not a feature of Ansible and has never done > anything. > > I see a stackoverflow post seeming to

Re: [ansible-project] what is set_when_task_skipped=false replacment in ansible 2.9?

2020-05-04 Thread Meir Yanovich
Maybe it was experimental plug in ... On Mon, May 4, 2020, 9:58 PM Matt Martz wrote: > set_when_task_skipped=false is not a feature of Ansible and has never done > anything. > > I see a stackoverflow post seeming to indicate it was a feature. However, > that is incorrect. > > Whatever you

Re: [ansible-project] what is set_when_task_skipped=false replacment in ansible 2.9?

2020-05-04 Thread Matt Martz
set_when_task_skipped=false is not a feature of Ansible and has never done anything. I see a stackoverflow post seeming to indicate it was a feature. However, that is incorrect. Whatever you expected it to do, never worked to begin with. On Mon, May 4, 2020 at 1:50 PM Meir Yanovich wrote: >

Re: [ansible-project] what is set_when_task_skipped=false replacment in ansible 2.9?

2020-05-04 Thread Meir Yanovich
Then it failed when I remove it and when The register var is not set , So basically what is the right way to do it ? The same function set_when_task_skipped=false Did On Mon, May 4, 2020, 9:20 PM Matt Martz wrote: > To my knowledge, that has in the past created a literal variable named >

Re: [ansible-project] what is set_when_task_skipped=false replacment in ansible 2.9?

2020-05-04 Thread Matt Martz
To my knowledge, that has in the past created a literal variable named `login_app set_when_task_skipped=false` `set_when_task_skipped` isn't a feature of Ansible. We've recently made some changes to ensure that variables are legal. Likely you just want: `register: login_app` On Mon, May 4,

[ansible-project] what is set_when_task_skipped=false replacment in ansible 2.9?

2020-05-04 Thread Meir Yanovich
i have old code which use set_when_task_skipped=false in register now it is not supported any more I'm getting on : - name: Find location register: login_app set_when_task_skipped=false when: result.stat.exists == True fatal: [10.0.4.211]: FAILED! => msg: 'Invalid variable name in

Re: [ansible-project] What is the proper way to check for required variables?

2020-04-15 Thread TOHID MANER
Hi, You can try below solution to check all required parameter (the parameter user has to specify while running the playbook/script) 1. Your var file - required_vars.yml required_vars: - var1 - var2 - var3 2. In task, include your var file - include_vars: ../vars/required_vars.yml 3.

Re: [ansible-project] What is the best approach to creating a inlude_vars file for my requirement

2020-01-28 Thread Jean-Yves LENHOF
Le 28/01/2020 à 22:13, Stefan Hornburg (Racke) a écrit : On 1/26/20 3:11 PM, Shifa Shaikh wrote: Dick Hi, My requirement is not about configuring a webserver. It is to maintain a check on a set of files. If the file changes by checksum or permissions I wish to trigger an alert. Thus, my

Re: [ansible-project] What is the best approach to creating a inlude_vars file for my requirement

2020-01-28 Thread Stefan Hornburg (Racke)
On 1/26/20 3:11 PM, Shifa Shaikh wrote: > Dick Hi,  > > My requirement is not about configuring a webserver.  > > It is to maintain a check on a set of files. If the file changes by checksum > or permissions I wish to trigger an alert.  > > Thus, my ansible will stat the file and then compare

Re: [ansible-project] What is the best approach to creating a inlude_vars file for my requirement

2020-01-26 Thread Shifa Shaikh
Dick Hi, My requirement is not about configuring a webserver. It is to maintain a check on a set of files. If the file changes by checksum or permissions I wish to trigger an alert. Thus, my ansible will stat the file and then compare the checksum and mode that was previously stored in the

Re: [ansible-project] What is the best approach to creating a inlude_vars file for my requirement

2020-01-25 Thread Dick Visser
Hi The information you've provided seems to contain several cases of wheel reinvention. Rather than helping you do that, please explain what you are REALLY looking to achieve. The file names in your example suggest: "configuring a web server". In which case, a few template tasks and a handler

[ansible-project] What is the module to install drivers?

2020-01-24 Thread Work-Hard
What is the module to install drivers ? it's not working with win_updates. === "changed": false, "filtered_updates": { "3ae62049-cfd0-482e-b95b-e44f346aa156": { "categories": [ "Drivers" ],

[ansible-project] What is the best approach to creating a inlude_vars file for my requirement

2020-01-24 Thread Shifa Shaikh
I use the stat module to read multiple files statistics from each remote server. Thus, I'm able to get the file mode and checksum value of say 3 files on host1 and 2 files on host2. I wish to know what is a good way to create/construct an include_vars file so that I can easily read back each

Re: [ansible-project] What approach should I take with this loop?

2019-11-14 Thread John Harmon
On Thursday, November 14, 2019 at 1:59:18 PM UTC-7, Vladimir Botka wrote: > > On Thu, 14 Nov 2019 11:41:51 -0800 (PST) > John Harmon > wrote: > > > The following fails for sure, but you get the idea of what I am trying > to > > do. How might I be able to loop this? Problem is with

Re: [ansible-project] What approach should I take with this loop?

2019-11-14 Thread Vladimir Botka
On Thu, 14 Nov 2019 11:41:51 -0800 (PST) John Harmon wrote: > The following fails for sure, but you get the idea of what I am trying to > do. How might I be able to loop this? Problem is with 'searchme' and > probably trying to do something you can't do > > - name: Set fact based on host >

[ansible-project] What approach should I take with this loop?

2019-11-14 Thread John Harmon
The following fails for sure, but you get the idea of what I am trying to do. How might I be able to loop this? Problem is with 'searchme' and probably trying to do something you can't do - name: Set fact based on host set_fact: log_source: "{{ item.src }}" when: "ansible_hostname is

Re: [ansible-project] What am I missing?

2019-11-08 Thread Vladimir Botka
On Thu, 7 Nov 2019 15:48:59 -0800 (PST) Steven Williams wrote: > fatal: [10.53.0.105]: FAILED! => changed=false > [...] > msg: operation requires privilege escalation > > *tasks*: > - *name*: Set terminal page to zero > *asa_config*: > *lines*: >

[ansible-project] What am I missing?

2019-11-07 Thread Steven Williams
Getting Error: PLAY [show Anyconnect VPN connections for ASA] * TASK [Set terminal page to zero] *** fatal: [10.53.0.105]: FAILED! =>

[ansible-project] What happens if in between the Play the node goes down

2019-10-24 Thread Sumanyu Nandwani
I am facing an issue in which I run a playbook on ~30 nodes and if in between of a play one of the nodes goes down, the whole play gets stuck ( I think Ansible gets stuck ) and the other nodes are also getting stuck due to one node. Is there a way in which I can just skip the play for that

[ansible-project] What are the requirements for using Ansible k8s module?

2019-10-15 Thread David Li
Hi, I am testing the k8s module on a Kubernetes cluster. I created a simple test task like this: - name: Test k8s: kind: Namespace name: test-ns state: present api_version:v1 kubeconfig: < some path to the kube config file> But when I ran the playbook, I got errors like

[ansible-project] What pre steps are run by nxos_command using connection: network_cli?

2019-08-28 Thread Ian Barrere
Hi, does anybody know what the steps are that "nxos_command" (with connection: network_cli) takes before running the specified command? I can't find documentation for that. For some reason, when issuing "show archive log config all" on two of my Nexus 31108TCVs, the index number decrements

Re: [ansible-project] What is the best way to manage machines that aren't defined as hosts?

2019-08-16 Thread Mike Eggleston
Create a local, temporary file of the new hosts and environment variable ANSIBLE_INVENTORY? Mike > On Aug 16, 2019, at 00:34, Zolvaring wrote: > > I'm not sure I understand fully, but none of the hosts you are configuring > need Ansible to be installed for you make changes remotely. Instead

[ansible-project] What is the best way to manage machines that aren't defined as hosts?

2019-08-15 Thread Zolvaring
Seeing that you may want to loop through actual guests, I would still define them as Ansible inventory hosts if you know them ahead of time, and if you need to run tasks from a different host by invoking VMware module then try: - name: do a thing to a guest vmware_module:

[ansible-project] What is the best way to manage machines that aren't defined as hosts?

2019-08-15 Thread Zolvaring
I'm not sure I understand fully, but none of the hosts you are configuring need Ansible to be installed for you make changes remotely. Instead of defining your hosts in a CSV, define your hosts as part of Ansible inventory and your tasks will loop through them naturally. You can also group

Re: [ansible-project] What is the best way to manage machines that aren't defined as hosts?

2019-08-15 Thread Zolvaring
I'm not sure I understand fully, but none of the hosts you are configuring need Ansible to be installed for you make changes remotely. Instead of defining your hosts in a CSV, define your hosts as part of Ansible inventory and your tasks will loop through them naturally. You can also group hosts

[ansible-project] What would be the checkpoint firewall ansible_network_os

2019-07-27 Thread Tribhuvan Yadav
any idea what should be the ansible_network_os for checkpoint. I am getting below error while running my playbook TASK [SHOW COMMAND]

[ansible-project] What to include in terminal_stdout_re when developing a terminal plugin

2019-07-09 Thread Matt Hickok
Hello all, I am trying to understand how to build the terminal_stdout_re array of regex patterns for my terminal plugin and I can't find any documentation on this particular subject. For example, let's say that I need to run 2 commands, and I want to capture the output of the second device.

Re: [ansible-project] What is the major difference between Redhat ansible network automation and redhat ansible automation?

2019-05-29 Thread Jonathan Lozada De La Matta
https://www.ansible.com/integrations/networks Basically ansible network automation is support for network modules listed in the link. Red Hat ansible automation is just ansible without networking module support. On Wed, May 29, 2019 at 8:45 AM rajthecomputerguy < rajthecomputer...@gmail.com>

[ansible-project] What is the major difference between Redhat ansible network automation and redhat ansible automation?

2019-05-29 Thread rajthecomputerguy
Hi team, What is the major difference between Redhat ansible network automation and redhat ansible automation? thanks, Pushparaj -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails

[ansible-project] What is the parameter attribute to use VM storage Policy

2019-04-03 Thread himanshu gupta
Hi All, Can anyone please suggest. Thanks, Himanshu -- 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

[ansible-project] What is the parameter attribute to use VM storage Policy

2019-03-29 Thread himanshu gupta
Hi Team, We are using Ansible to build the VM on Vmware ESXi host and recently we configured the VASA to use the VVOLS. We have created some VM Storgare Policies and we now want to pass these VM storage policy while creating the VM using ansible. Can anyone please suggest what should be the

[ansible-project] What are the correct sFTP settings for Ansible

2018-12-25 Thread Baraka Baraka
Hi! I am having the problem on a DigitalOcean Ubuntu 18.04.1 LTS server, that when I ping the server with: "*ansible all -m ping*" I get this error message: "*[WARNING]: sftp transfer mechanism failed on [xxx.xxx.xxx.xxx]*" I went to the server's sshd_config file and tweeked until I got it

[ansible-project] What is the best practice to manage project `foobar` uninstall action ?

2018-12-16 Thread Stéphane Klein
Hi, What is the best practice to manage project `foobar` uninstall action ? a. Write two playbooks example: `foobar_install.yml` and `foobar_uninstall.yml` and two roles `roles/foobar_install_and_upgrade/...` and `roles/foobar_uninstall/...` b. Or only one playbook `foobar` and one

  1   2   3   >