Re: [ansible-project] need help on awx.awx

2024-03-15 Thread Daniel Gonçalves
Hello. You need to use the fqcn: awx.awx.host Daniel Le 15/03/2024 à 09:05, Thirumalai Raja A a écrit : hi all, below is my playbook and even i installed collection but i am facing the error can anyone guide me     - name: Add host host: controller_host: "{{ awx_url }}" controlle

[ansible-project] Re: Role Handler Separation

2024-02-09 Thread Daniel Barros
Would something like that help? --- - name: Playbook Temp hosts: localhost gather_facts: true vars: restart_svcs: Debian: Restart Debian service RedHat: Restart RedHat service handlers: - name: Restart Debian service ansible.builtin.debug: msg: "some

Re: [ansible-project] rescue for target failed connection question using localhost

2023-08-21 Thread Daniel Barros
Hi Brian. Using ignore unreachable and failing based on the condition of the register variable based on your example did the trick for me. I appreciate your time and sharing. Br On Mon, Aug 21, 2023, 15:26 Brian Coca wrote: > I forgot to mention, the reason your rescue does not work is

[ansible-project] rescue for target failed connection question using localhost

2023-08-21 Thread Daniel Barros
Hi everyone. Good day. When we have a regular task like creating a file, or something similar, we can use block and rescue to manage what happens in failure cases. But can we do the same for the first task (connection) on a target and rescue using localhost? What I would like to achieve is

[ansible-project] Ansible Async List will not use same retrying for batch

2022-12-09 Thread Daniel Barros
Hi everyone, how are you doing? I have a conceptual question that I would like your comments if possible. I’m using async with poll 0 on a loop. Something like this *async: 45* *poll: 0* *with_items: "{{ big_list }}"* Let’s say this loop has 50 commands. All the commands are started

Re: [ansible-project] Question about community.general.opentelemetry callback

2022-11-08 Thread Daniel Barros
hat version. (It removed some helper function > that the plugin was using, see > > https://github.com/ansible-collections/community.general/blob/stable-5/CHANGELOG.rst#bugfixes > .) > > Cheers, > Felix > > > > > On Mon, 7 Nov 2022 18:15:36 -0300 > Daniel Bar

Re: [ansible-project] Question about community.general.opentelemetry callback

2022-11-07 Thread Daniel Barros
Yes, it's strange. They are installed in that path pip list -v | grep opent opentelemetry-api 1.13.0 /home/daniel/py_venvs/ansible_2.13/lib/python3.9/site-packages pip opentelemetry-exporter-otlp1.13.0 /home/daniel/py_venvs/ansible_2.13/lib/python3.9/site

Re: [ansible-project] Question about community.general.opentelemetry callback

2022-11-07 Thread Daniel Barros
Hi man. This is the entire output ansible --version ansible [core 2.13.2] config file = None configured module search path = ['/home/daniel/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/daniel/py_venvs/ansible_2.13/lib/python3.9

Re: [ansible-project] Question about community.general.opentelemetry callback

2022-10-28 Thread Daniel Barros
Hi man, thanks for the time. Please see the information as requested ansible --version ansible [core 2.13.2] pip --version pip 22.3 from /home/daniel/py_venvs/ansible_2.13/lib/python3.9/site-packages/pip (python 3.9) python --version Python 3.9.13 On Fri, Oct 28, 2022 at 12:20 PM Dick Visser

[ansible-project] Question about community.general.opentelemetry callback

2022-10-28 Thread Daniel Barros
Hi group, good day, how are you? I have a question about using community.general.opentelemetry to send data to APM. I have set my ansible.cfg like this. [defaults] callbacks_enabled = community.general.opentelemetry [callback_opentelemetry] enable_from_environment =

Re: [ansible-project] Understanding block and rescue

2022-08-18 Thread Daniel Barros
Hi, I believe I replied only to the author, so sorry if anyone is seeing duplicated messages from me. But try moving the task that failed inside the block. Its currently outside --- - block: - name: "status systemd-resolved" command: systemctl status systemd-resolved register:

Re: [ansible-project] Ansible 2.13 yum module - requires minimum version of target python of 2.7 or 3.5. But I already have that

2022-08-08 Thread Daniel Barros
I appreciate the time and the answers. My customer has an up-to-date Ansible but some server OS are still old. So I’ll consider using the command module for this special case (yum rhel 6). Thank you again. Br, Daniel On Monday, August 8, 2022 at 10:30:22 AM UTC-3 Matt Martz wrote

[ansible-project] Ansible 2.13 yum module - requires minimum version of target python of 2.7 or 3.5. But I already have that

2022-08-05 Thread Daniel Barros
n_interpreter": "/usr/bin/python3.6", "ansible_user": "daniel" } Ansible can ping, setup and gather facts from target successfully. But when trying to run the yum module, I get an error as if my server doesn't have Python 3.6 This is my playbook --- - name:

Re: [ansible-project] Hooks in Ansible

2022-07-26 Thread Daniel Gonçalves
Hello, thank you for your answer! What I understand about cache plugins is that what could interrest me is fact caching. But as far as I know, lookup plugins can't set facts. Regards, Daniel Le 2022-07-26 13:08, Todd Lewis a écrit : Sounds like you want cache plugins. https

Re: [ansible-project] Hooks in Ansible

2022-07-26 Thread Daniel Gonçalves
Currently my plugin's process has a Time To Live concept to keep data during some customizable duration. It's pretty similar to what *async* provides but the drawback is that you need to know in advance how many time the execution will take, and that's what I want to avoid. Regards, Daniel

Re: [ansible-project] Hooks in Ansible

2022-07-25 Thread Daniel Gonçalves
*, *handlers*, and *wait_for* are excluded. *ansible-runner* may be a good alternative but I don't want to force users to use *ansible-runner* instead of *ansible*. I hope it's more clear. Regards, Daniel Le 2022-07-25 21:55, Vladimir Botka a écrit : On Mon, 25 Jul 2022 19:06:33 +0200

[ansible-project] Hooks in Ansible

2022-07-25 Thread Daniel Gonçalves
playbook execution step. I wonder if there is some event listener I can subscribe on in order to execute my code. I don't know if this is good place to discuss about that or if I need to start a thread on devel. If so let me know. Daniel. -- You received this message because you are subscribed

Re: [ansible-project] vmware_guest module with disk extra parameter

2022-04-22 Thread Daniel S.
t in > a debug task with your data. > This should be a lot easier. > > On 4/19/22 3:51 PM, Daniel S. wrote: > > Hello everyone, i was using ansible 2.10.3, and all was working as well. > > I've tried to upgrade my project to ansible 4.10.0, but i'm facing this > issu

[ansible-project] vmware_guest module with disk extra parameter

2022-04-19 Thread Daniel S.
Hello everyone, i was using ansible 2.10.3, and all was working as well. I've tried to upgrade my project to ansible 4.10.0, but i'm facing this issue. I have the fallowing message: { "msg": "Unsupported parameters for (vmware_guest) module: disk.lvnames, disk.vgname. Supported parameters

Re: [ansible-project] How to execute SQL query on PostgreSQL?

2021-11-30 Thread Daniel Huesca
ASSIGN OWNED BY %(role)s TO %(admin)s; DROP OWNED BY %(role)s; DROP ROLE %(role)s;']"} El martes, 30 de noviembre de 2021 a las 16:59:45 UTC+1, dick@geant.org escribió: > On Tue, 30 Nov 2021 at 16:48, Daniel Huesca wrote: > > > Any idea on what I'm doing wrong? > > N

Re: [ansible-project] How to execute SQL query on PostgreSQL?

2021-11-30 Thread Daniel Huesca
%(admin)s; REASSIGN OWNED BY %(role)s TO %(admin)s; DROP OWNED BY %(role)s; DROP ROLE %(role)s;']"} El martes, 30 de noviembre de 2021 a las 16:59:45 UTC+1, dick@geant.org escribió: > On Tue, 30 Nov 2021 at 16:48, Daniel Huesca wrote: > > > Any idea on what I'm doing wron

[ansible-project] How to execute SQL query on PostgreSQL?

2021-11-30 Thread Daniel Huesca
I'm reading the docs @ https://docs.ansible.com/ansible/latest/collections/community/postgresql/postgresql_query_module.html but I keep getting errors when trying to execute a few simple commands... [image: Captura.PNG] This is the output I'm getting [image: Captura2.PNG] Any idea on what

[ansible-project] Re: how to pass the variable holding the value to regex_search for matching the output?

2021-07-21 Thread Charles Daniel
help would be much appreciated!! On Tuesday, July 20, 2021 at 6:07:43 PM UTC+5:30 Charles Daniel wrote: > Team, > > I would like to pass the variable holding value to regex to match the > output. > > prim_b2b_ip is the variable which i need to use inside the regex sear

[ansible-project] how to pass the variable holding the value to regex_search for matching the output?

2021-07-20 Thread Charles Daniel
\s]+)([\d]+)([\s]+)([\d]+)([\s]+)(.*)([\s]+)([\d]+))') | list }} register: output - debug: msg: "{{ output }}" - name: Check B2B interface address presence on secondary fail: msg: "B2B peering interface address is not present on secondary" failed_whe

Re: [ansible-project] Re: how to use a variable from one task to another task

2021-07-08 Thread Charles Daniel
ps.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CACVha7dsNdHk%3DF0xiML8NWPohzq0aAvsPeK801jCz5Ft-S1Oow%40mail.gmail.com > . > -- Thanks, Charles Daniel -- You received this message because you are subscribed to the Google Groups "Ansib

Re: [ansible-project] how to eliminate unicode characters while doing regex matching an ip address

2021-07-08 Thread Charles Daniel
, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None]\n" } Thanks, Charles Daniel On Thu, 8 Jul 2021 at 17:02, Rajthecomputerguy wrote: > Try "{{ output.stdout[0] }}&quo

Re: [ansible-project] how to eliminate unicode characters while doing regex matching an ip address

2021-07-08 Thread Charles Daniel
*** 172.16.12.1: ok=4changed=0unreachable=0failed=0 skipped=0rescued=0ignored=0 [root@tower1 temp_play]# Thanks, Charles Daniel On Thu, 8 Jul 2021 at 15:34, Dick Visser wrote: > You're sending only the output of the d

[ansible-project] how to eliminate unicode characters while doing regex matching an ip address

2021-07-08 Thread Charles Daniel
"ansible_facts": { "intf": "- [u'172.16.121.6']\n" }, "changed": false, "failed": false } } Thanks, Charles Daniel -- You received this message because you are subscribed to the Google Groups &q

Re: [ansible-project] Re: how to use a variable from one task to another task

2021-07-08 Thread Charles Daniel
Thanks a lot, Dick Visser, I just wanted to access it, even with a dummy hostname is ok. let me try that. Thanks, Charles Daniel On Thu, 8 Jul 2021 at 12:53, Dick Visser wrote: > > https://stackoverflow.com/questions/39207616/if-set-fact-is-scoped-to-a-host-can-i-use-dummy-host-as-a-

[ansible-project] Re: how to use a variable from one task to another task

2021-07-08 Thread Charles Daniel
When i try to use/inoke on another task, i get error as sec_tunnel_ip is undefined. On Thursday, July 8, 2021 at 12:22:06 PM UTC+5:30 Charles Daniel wrote: > > Team, > > I would like to use the variable i got from one ansible task to another > task where hosts are different.

[ansible-project] how to use a variable from one task to another task

2021-07-08 Thread Charles Daniel
Team, I would like to use the variable i got from one ansible task to another task where hosts are different. Please help me use the variable to use it on another task!! --- - name: Get the primary router tunnel ip address hosts: primary gather_facts: false connection: local tags:

[ansible-project] Re: Windows Playbook how to not have a remote connection for every task

2021-04-15 Thread Daniel
secret: password > state: present > > - win_credential: > name: server2 > type: domain_password > username: user2 > secret: password > state: present > > - win_command: robocopy \\server1\share\folder \\server2\share\folder &

Re: [ansible-project] Copy files from remote to remote

2021-04-15 Thread Daniel
I just posted this... https://groups.google.com/g/ansible-project/c/AHSouJ_nM8g If I could figure out how to do what I am doing, that would be a solution you are trying to solve. We have servers at remote locations, sometimes users will move from one remote locale to another remote locale,

[ansible-project] Windows Playbook how to not have a remote connection for every task

2021-04-15 Thread Daniel
Working on a playbook, using the following windows modules: win_mapped_drive and win_robocopy. I have been using net use commands since the late 80's with 3Com Lan Manager, so I know what I am doing and I can do what I want at the command line. win_mapped_drive x: block of stuff

[ansible-project] how to prevent apt module from desinstall something when installing a package ?

2021-04-14 Thread Daniel Caillibaud
Is there a dpkg_options to make the install task to fail if an installed package is in conflict with the one(s) to install ? Thanks -- Daniel In a world without walls or fences, what use do we have for windows or gates? -- You received this message because you are subscribed to the Google Groups "An

Re: [ansible-project] file module, why useless src should be an error with state absent ?

2021-02-09 Thread Daniel Caillibaud
}}" > src: "{{ is_baremetal | ternary('/usr/share/munin/plugins/' ~ item, > omit) }}" >loop: > - acpi > - cpu >... > > (As a workaround, not very nice, ...). Your remark is valid. +1 Still nicer than duplicate all the task, thanks a lot

Re: [ansible-project] file module, why useless src should be an error with state absent ?

2021-02-09 Thread Daniel Caillibaud
Le 09/02/21 à 12:29, Vladimir Botka a écrit : > On Tue, 9 Feb 2021 11:17:26 +0100 > Daniel Caillibaud wrote: > > > - name: enable plugins for baremetal only > > file: > > path: "/etc/munin/plugins/{{ item }}" > > state: "{{ is_barem

[ansible-project] file module, why useless src should be an error with state absent ?

2021-02-09 Thread Daniel Caillibaud
orks, but it show this warning [WARNING]: The src option requires state to be 'link' or 'hard'. This will become an error in Ansible 2.10 Why turn this to an error ? It will force me to write almost the same task twice (one with `state: link` and a second with `state: absent`) -- Daniel L

Re: [ansible-project] Re: exec_wrapper hangs

2021-02-04 Thread Daniel Blixt
We have seen no pattern to the content of the win_shell tasks, and when we ran async they were all with a timeout. As we suspected problem with async, we have worked around the need for async-timeout tasks, but this still happens for tasks with become. Exploring the process tree shows just two

[ansible-project] exec_wrapper hangs

2021-02-04 Thread Daniel Blixt
When running win_shell module in our playbooks with async or become, we are sometimes left with ansible exec_wrapper and a child conhost process that won't return and keeps eating resources on the node. Since we are using ansible through ZUUL to run Continuous Integration, we quickly fill up

Re: [ansible-project] Filter a dict with a list in a loop

2021-01-04 Thread Daniel Caillibaud
{ hostvars|json_query('*[inventory_hostname==`foo`].inventory_hostname') }}" => empty list -- Daniel On tue un homme, on est un assassin. On tue des millions d'hommes, on est un conquérant. On les tue tous, on est un dieu. Edmond Rostand -- You received this message because

Re: [ansible-project] setting gather_facts for a role ?

2020-12-02 Thread Daniel Caillibaud
should implies gather_facts or not). - In a play, I chain roles but I don't know exactly if one role needs fact or not - If I add a --limit to the play run, perhaps that all roles which needs facts are skipped (the target isn't in any group needing fact) so gather_facts will be useless in

Re: [ansible-project] Using 2 different users in one playbook

2020-12-02 Thread Daniel Caillibaud
> the reboot needs to be done as root. > > When we run the playbook, we enter our normal user credentials that has > sudo access, but when we try to switch as the oracle user in the > playbook, we get "incorrect su password". I'm noob with ansible, but why trying su method

[ansible-project] use of .keys() and .values() on dict object

2020-12-02 Thread Daniel Caillibaud
better to avoid this way of looping ? -- Daniel Enseigner, c'est apprendre deux fois Joseph Joubert -- 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] setting gather_facts for a role ?

2020-12-02 Thread Daniel Caillibaud
Hi, I saw that I can specify gather_facts: no in a playbook or a tasks list, but is it possible to precise it for a role ? I tried on top of a roles/xxx/tasks.yml (because it's a tasks list) but it throw a syntax error while loading yml Thanks -- Daniel La guerre civile est moins

[ansible-project] best practices in vars organisation

2020-12-02 Thread Daniel Caillibaud
ost definition), with with dynamic inventory and constructed plugin, I'll see… Any advice from experienced users will be appreciated ;-) -- Daniel Ne prenez pas la vie trop au sérieux, de toutes façon vous n'en sortirez pas vivant. Bernard Fontenelle -- You received this message because you are subscribed

[ansible-project] Ansible AWX on Amazon Linux 2?

2020-07-20 Thread Daniel
are also going to look at AWX along side it, with AWX use Amazon Linux before I go through trying to put it in place. Thank you Daniel -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving e

[ansible-project] New to Ansible - install Infrastructure

2020-07-15 Thread Daniel
it have to be Redhat or CentOS also? Tower install only wants Redhat or CentOS. Thank you Daniel -- 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 ansib

Re: [ansible-project] Sum a list of items received

2020-03-02 Thread Daniel Whitley
efully this is helpful. -Daniel On Mon, Mar 2, 2020 at 9:30 AM harry devine wrote: > > > On Thursday, February 27, 2020 at 1:44:39 PM UTC-5, harry devine wrote: >> >> Hey Daniel! This stem from ticket #02582900. Since the stance from >> Support is “we do

Re: [ansible-project] Sum a list of items received

2020-02-27 Thread Daniel Whitley
on you asked, but you should be used to that from me at this point. :) -Daniel On Thu, Feb 27, 2020 at 9:38 AM harry devine wrote: > I'm using the gluster_heal_info module to check the heal status of a > gluster volume. What I'd like to do is gather the "no_of_entries" > paramet

[ansible-project] authorized_key and multiple keys for one user

2020-02-05 Thread Daniel Nanboe
I have an inventory file where for one host I have defined the users and keys that I want to use in a playbook: sftp_users: - remote_user: prod state: present long_name: prod user ssh_key: - prodkey_1 - prodkey_2 - remote_user: test state: present long_name: test user

[ansible-project] AWX multiple templates on workflow

2020-02-05 Thread Daniel Bianco
I'm working on a Workflow on AWX to run several templates (basically playbooks). I have created a project that connects to the git to get my playbooks. Manually they will run one after the other and one of the playbooks will depend on the other. For example the 001 playbook will generate some

Re: [ansible-project] File exists but stat is false

2020-02-04 Thread Daniel Nanboe
I just realised that I am stupid :D The file was on the computer where I was running the ansible script not on the target server. What I needed to do was to run the check locally - name: Check if ssh key exists local_action: stat path="/config/clients/ssh_keys/daniel_nanboe.pub" register:

Re: [ansible-project] File exists but stat is false

2020-02-04 Thread Daniel Nanboe
ay, February 4, 2020 at 1:02:50 PM UTC+2, Dick Visser wrote: > > that exact task errors because of the space after "path=" - I think > that's a typo on your part? > > > > On Tue, 4 Feb 2020 at 11:52, Daniel Nanboe > > wrote: > > > > I have a pr

[ansible-project] File exists but stat is false

2020-02-04 Thread Daniel Nanboe
I have a problem checking if a file exists: - name: Check if ssh key exists stat: path= "/config/clients/ssh_keys/daniel_nanboe.pub" register: exista - debug: var=exista - fail: msg: Stop The file exists but the stat returns false: "exista": { "changed": false,

[ansible-project] Help on using the wen condition

2020-01-24 Thread Daniel Nanboe
I have a list of users defined as variable on my inventory. I want to create a task that checks if for each user exists a file in a folder if it exists will run a task if not will run an other task. I have a task that add the user with password if password exists and no ssh key is found and

Re: [ansible-project] AIX O/S version detection problems in Ansible 2.8

2019-10-01 Thread Daniel Delin
On Monday, September 30, 2019 at 7:05:57 PM UTC+2, Kai Stian Olstad wrote: > > This look like a bug, but when I check the code distribution_major_version > for AIX is not changed between 2.7.10 and 2.8.4, only distribution_version > and distribution_release has some changes. > > The fact is

[ansible-project] AIX O/S version detection problems in Ansible 2.8

2019-09-30 Thread Daniel Delin
Hi, Noticed that a few of our playbooks failed to run on AIX after trying to move from 2.7.10 to 2.8.4 I´ve tracked it down to handling of the ansible_distribution_major_version fact. *We include variables in the playbooks like this:* - name: Include OP5 varibles. include_vars: "{{ item

Re: [ansible-project] Docker module error

2019-05-17 Thread Daniel Whitley
. Using the pip Ansible module will install the correct version. -Daniel On Fri, May 17, 2019 at 2:49 AM idemia pune wrote: > Hi, > > Please help to get this resolved, tried all most everything. > > Ansible Version: > > ansible 2.7.10 > > config file = /etc/ansible/a

Re: [ansible-project] Default filter issue

2019-05-14 Thread Daniel Vašek
This could work, but only if there is no such group. When the group exists, but its empty, it throws error. Dne úterý 14. května 2019 9:50:36 UTC+2 Stefan Hornburg (Racke) napsal(a): > > On 5/14/19 9:23 AM, Daniel Vašek wrote: > > Hello, > > > > Im tryi

[ansible-project] Default filter issue

2019-05-14 Thread Daniel Vašek
Hello, Im trying to use default filter: hosts: ["{{ groups['examples'][0] | default('localhost') }}":5045] But it return error: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'examples'"}. I read something about default can use only 1 level

Re: [ansible-project] Re: Ansible to adopt molecule and ansible-lint projects.

2019-02-07 Thread Pablo Daniel Estigarribia Davyt
Hi all! I think it was really excelent to have molecule adopted by ansible and I use it on all my linux roles. Today I'm looking to have some way to use molecule to test my Windows roles too, at lease having driver with some cloud. But I can't find any guide to go in this way. Also checking

Re: [ansible-project] include_vars for defaults

2018-11-06 Thread 'Daniel' via Ansible Project
. Regrads Daniel Am Mittwoch, 30. April 2014 22:41:29 UTC+2 schrieb Michael DeHaan: > > Well, sort of, but unfortunately, no :) > > While the default does control what variable gets loaded with "set_fact" > (this could have been done without the default) it is stil

[ansible-project] Add Host to Group dynamically (or better: design question regarding a hacky solution)

2018-11-06 Thread 'Daniel' via Ansible Project
does not work for me. So I will either have to live with that solution, or someone has a better idea. Regards Daniel -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails f

Re: [ansible-project] Creating playbook to deal with multiple possible login names (Fallback login)

2018-10-01 Thread Daniel
A fair answer, Brad. We can actually run the same playbook multiple times by setting "-u" at runtime. While the tasks may be executed, I'd have multiple logs of the tasks, I have other scripts that parse the output for success/failure rates. Having three similar logfiles becomes messy

[ansible-project] Creating playbook to deal with multiple possible login names (Fallback login)

2018-10-01 Thread Daniel
I need to run automation against many hosts. Some use login "A", some use login "B". Passwords are the same. 1) How can I get ansible to try a secondary login based on login failure? 2)I've written a playbook to try multiple logins, and set ansible_user according to success or

[ansible-project] Create AWS WAF rate based rule

2018-05-18 Thread daniel . plappert
rate based rule with a web ACL. The module aws_waf_web_acl module has a parameter "rules", which has a type key and its value can either be rate_based or regular. So, my question is, how can I create a rate baed waf rule? Thanks for your help. Best regards, Daniel -- You received

[ansible-project] Re: Ansible 2.5 is not accepting dynamic hosts variable

2018-04-17 Thread Daniel Palmer
Thanks for the reply. I found the issue and it is a bug in 2.5.0 and was reported here: https://github.com/ansible/ansible/issues/37984 The fix is also linked in the bug report at: https://github.com/ansible/ansible/pull/38000. I pulled the fixed file and my install of 2.5.0 is now working as

[ansible-project] Ansible 2.5 is not accepting dynamic hosts variable

2018-04-14 Thread Daniel Palmer
Did you ever resolve this issue? Or find an acceptable workaround? I have the same issue and that is a core part of many of our playbooks. DP -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

Re: [ansible-project] Is it possible to avoid aborting a play if all hosts in a serial batch fail?

2018-02-28 Thread Daniel Heffner
that's a good point, and it indicates that I'm probably barking up the wrong tree with serial and I just need to increase the memory on the VM. it doesn't answer why there's no way to set a playbook to continue even if a serial batch fails, but I suppose that's irrelevant to me now. On Feb 28,

Re: [ansible-project] Is it possible to avoid aborting a play if all hosts in a serial batch fail?

2018-02-28 Thread Daniel Heffner
so let's pretend the task list is 1. ssh to the host and execute a command that returns a large amount of text 2. parse that text into json 3. send the json to an API consider the difference between holding 50 objects that each take up 5 mb and possibly over 500 objects that each take up 5 mb.

Re: [ansible-project] Is it possible to avoid aborting a play if all hosts in a serial batch fail?

2018-02-28 Thread Daniel Heffner
serial=50 means than instead of trying to parse and hold in memory text output from over 500 hosts, you only have to do it for 50 at a time. unless the documentation is severely confusing, forks and serial are not the same thing. forks is number of hosts to run in parallel, serial is how many

Re: [ansible-project] Is it possible to avoid aborting a play if all hosts in a serial batch fail?

2018-02-28 Thread Daniel Heffner
isn't the default forks=5? it doesn't seem like increasing the number of parallel processes would address the issue of running g out of memory while parsing text output from hundreds of hosts On Feb 28, 2018 6:33 PM, "Brian Coca" wrote: > If you are doing it for memory issues,

Re: [ansible-project] Is it possible to avoid aborting a play if all hosts in a serial batch fail?

2018-02-28 Thread Daniel Heffner
also, the documentation specifically says that max_fail_percentage needs to be exceeded. you can't exceed 100%, so I hoped that would work. I suppose this behavior is nonsensical to me. If I was baking cookies and got halfway through the dough when I completely burned one batch, I wouldn't just

Re: [ansible-project] Is it possible to avoid aborting a play if all hosts in a serial batch fail?

2018-02-28 Thread Daniel Heffner
short answer, I'm trying to solve an issue where I run out of memory parsing output by limiting the number of hosts being processed at one time. isn't the feature of serial the ability to run through hosts in batch, not the behavior of killing a playbook run if some of the hosts fail? On Feb 28,

[ansible-project] Is it possible to avoid aborting a play if all hosts in a serial batch fail?

2018-02-28 Thread Daniel Heffner
So, for example, i have a playbook: - hosts: some_hosts serial: 50 roles: - some_role ... some other play with different hosts and for some reason, all 50 hosts in a batch fail. I want to continue running the play on the rest of the hosts in the some_hosts group, and continue on to the

Re: [ansible-project] How to ignore the failed plays, not just failed tasks ?

2018-02-28 Thread Daniel Heffner
I'll probably make my own post because this post is so old, but it is the same topic, so... Is there a way to avoid aborting the run when all hosts in a serial batch have failed? On Friday, May 10, 2013 at 8:33:29 AM UTC-5, Michael DeHaan wrote: > > The whole play will only fail and abort the

[ansible-project] How to force win_unzip to overwrite a existing file?

2018-01-18 Thread Daniel Bernardo
I'm extrating a zip file on a folder, like to do a IIS deploy using win_unzip, but files that alredy exists were no updated. I didnt found nothing about =/ http://docs.ansible.com/ansible/latest/win_unzip_module.html -- You received this message because you are subscribed to the Google Groups

[ansible-project] Re: Perform a failed_when: on an async task based on a value from stdout

2018-01-17 Thread Daniel Heffner
it's been a while since you posted, but maybe this will help someone else. I have a similar issue - it looks like failed_when just doesn't work with async tasks. I've had to ignore errors on the async task and use ansible's fail module with a when condition as the next task to fail the play On

[ansible-project] cannot load cliconf for network os sros

2018-01-11 Thread Daniel Heffner
I've run into a problem when trying to use the sros_command module on virtual nokia devices. I enabled logging with log_path , and saw that I'm

[ansible-project] Re: post_tasks did not run for all hosts after 1 host failed block in role

2017-11-30 Thread Daniel Leonard
Hi, Actually I'm only getting this behavior when using the ansible integration for StackStorm https://github.com/StackStorm-Exchange/stackstorm-ansible Running this playbook using plain ansible behaves as I expected it would i.e. host1 executes post_tasks. Cheers, Daniel On Wednesday

[ansible-project] post_tasks did not run for all hosts after 1 host failed block in role

2017-11-28 Thread Daniel Leonard
o be the behavior. I thought host1 should execute the post tasks. Could anybody please help me to understand why this happens and suggest how to make sure the post_tasks execute for hosts which have not had any role task failures? Preferably while still using post_tasks. Thanks a lot, Dani

[ansible-project] Re: ansible get-url notworking

2017-10-11 Thread Daniel JD
It's not working for me. I get a 5xx Server error. Am Mittwoch, 11. Oktober 2017 07:55:25 UTC+2 schrieb Sri Valli: > > i am just executing below yml file > name: Download oracle-jdk8 > get_url: url={{ jdk_url }} dest={{jdk_archive_file}} mode=0755 > > > i am getting below error > > TASK

[ansible-project] Re: Conditionally running a filter in a chain

2017-08-26 Thread Daniel JD
Isn't play_hosts a reserved ansible variable (deprecatd but still..). Maybe try another name. Am Donnerstag, 24. August 2017 16:36:41 UTC+2 schrieb Jean-Francois Bibeau: > > Hi, > > Trying to do the following, and struggling to find a way to do this. > > I build a list of strings, and want to

Re: [ansible-project] Re: add user via adhoc

2017-08-24 Thread Daniel JD
ansible all -i hostfile -m user -a "name=test password=test" -s -K or ansible all -i 192.168.11.11, -m user -a "name=test password=test" -s -K there must be a comma after the ip because its a tuple. Am Donnerstag, 24. August 2017 12:07:53 UTC+2 schrieb Tcpip: > > That Will be in my host file

Re: [ansible-project] Re: Best practice to change root pass

2017-08-03 Thread Daniel Cure
ribió: > > > Am Montag, 31. Juli 2017 23:10:01 UTC+2 schrieb Daniel Cure: >> >> what is the best method for changing root password in linux redhat env. >> >> > Probably the user module. > > http://docs.ansible.com/ansible/latest/user_module.html > >

[ansible-project] Re: Print output in human readable format

2017-08-02 Thread Daniel JD
Ups, my bad. Like this "{{ output.stdout.split('\n') }}" Am Mittwoch, 2. August 2017 17:19:34 UTC+2 schrieb Ted Meller: > > That didn't work. The output I got from that was: > > ok: [192.168.14.25] => { > "msg": "output.stdout.split(\"\\n\")" > -- You received this message because you are

[ansible-project] Re: Print output in human readable format

2017-08-02 Thread Daniel JD
ut": [ > "Radio power mode = ON\nChannel Number = 1062\nCurrent Band = > WCDMA 850\nCurrent RSSI(RSCP) = -70 dBm\nLTE Technology Preference = > AUTO\nLTE Technology Selected = UMTS" > ] > > On Tuesday, August 1, 2017 at 12:12:42 PM UTC-6, Daniel JD wrote

[ansible-project] Re: Print output in human readable format

2017-08-01 Thread Daniel JD
Give an example please. Which output did you expected and what did you actually got? Am Dienstag, 1. August 2017 18:49:02 UTC+2 schrieb Ted Meller: > > Im having troube in Ansible 2.3.0 to print out my output in a human > format. Currently everything comes out as one line. below is a sample of

[ansible-project] Best practice to change root pass

2017-07-31 Thread Daniel Cure
hi peole thanks so much for your kindly help. Im mew here and i hope to help so much. Im just learning ansible and im new to this but im going to learn fast. My question is, do you what is the best method for changing root password in linux redhat env. Thanks a lot dear people. Sorry my bad

[ansible-project] Re: not able to find output of shell command

2017-07-29 Thread Daniel JD
Well, the output is saved to the variable. You have to display it if you want to see it :D - debug: var=mymotd Am Samstag, 29. Juli 2017 21:26:16 UTC+2 schrieb Sameer Modak: > > This is my yml file which is working fine for zypper commands but unable > to see output for /etc/motd file. How to

[ansible-project] Re: Getting started with "properly structured playbooks!?"

2017-07-29 Thread Daniel JD
Hey Nicholas, there are many possible locations where you could define it. Are you aware that there is a difference between "roles" and "playbooks"? The filelayout you created is a role- layout. A role contains a set of tasks which are applied to a host. The decision which host the role is

[ansible-project] Re: ansible_ssh_pass parameter with salt encrypt value of ansible_user password makes client server Unreachable on playbook run

2017-07-29 Thread Daniel JD
Also check out Ansible- Vault for more security. http://docs.ansible.com/ansible/latest/playbooks_vault.html Am Samstag, 29. Juli 2017 00:58:45 UTC+2 schrieb Lorenzo Farinas: > > I successfully created and tested some Ansible playbooks, that's when > ansible_ssh_pass parameter value is the

[ansible-project] Re: Small Example for Reading from CSV-File for the creation of new user

2017-07-26 Thread Daniel JD
Hey Dan, your current csv file doesn't really looks like a csv file :D The item variable which you are refering to is the key which jinja will use to give you the right csv- row. I am guessing that there will be some more values than the name in the future, so you could iterate over the first

[ansible-project] Ansible Silo - Ansible in a 100% controlled environment

2017-07-21 Thread 'Daniel Schroeder' via Ansible Project
://github.com/groupon/ansible-silo Cheers, Daniel -- 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

Re: [ansible-project] Scope gets polluted with variables from included roles even though private_role_vars = yes

2017-07-13 Thread Daniel C. Schmidt
Oh—just re-read the example. If that's actually the case then it would be a bug, since task vars are supposed to have higher precedence than role vars. The example doesn't work

Re: [ansible-project] Scope gets polluted with variables from included roles even though private_role_vars = yes

2017-07-13 Thread Daniel C. Schmidt
> > That makes modules completely unusable, code cannot be reused in Ansible? It's not ideal, but a simple workaround is simply to prefix your role variables with the name of the role. For example, using the names "nginx_port" and "unicorn_port" instead of just "port". It's actually worked

Re: [ansible-project] Cannot read group_variable from role task - Ansible 2.3.1.0 (works fine with 2.1) -

2017-07-08 Thread Daniel JD
Good thing to remember: Always use curly brackets if you want to access variables, except in in "when"- directives (failed_when, success_when, when). Conditionals are always processed by jinja2 templating. Am Donnerstag, 6. Juli 2017 19:11:24 UTC+2 schrieb Paolo Galizzi: > > I confirm this

[ansible-project] Re: What traces does Ansible leave on remote hosts and how can I remove them?

2017-07-08 Thread Daniel JD
I forgot to tell you how to change that path :D The option is the following: remote_tmp = ~/.ansible/tmp Am Samstag, 8. Juli 2017 14:19:18 UTC+2 schrieb Daniel JD: > > Ansible should cleanup the files inside that folder. It should be empty! I > dont know a way to complet

[ansible-project] Re: What traces does Ansible leave on remote hosts and how can I remove them?

2017-07-08 Thread Daniel JD
Ansible should cleanup the files inside that folder. It should be empty! I dont know a way to completly remove it... You could change the path to /tmp/.ansible and then it should automatically be cleaned by the OS (because /tmp is a tmpfs which is located in DRAM or if its a normal filesystem,

  1   2   3   >