Re: [ansible-project] Unable to reuse ssh connections in Ansible despite PIPELINING = True

2023-07-05 Thread Mark Foster
Consider you might have conflicting settings in your ssh config (~/.ssh/config and/or /etc/ssh/ssh_config)? Here's what I have... Host * ControlMaster auto ControlPath ~/.ansible/cp/%h-%r ControlPersist 10m control_path probably needs to match ControlPath. Not sure about the others. On Wed

[ansible-project] Selectively running tasks but using static includes

2022-12-01 Thread Mark Faine
This is a terrible weakness in Ansible for me. I don't want to choose between dynamic and static imports. I want to be able to do both. I want to be able to use features like --list-tasks and --list-tags but I also want to be able to selectively run tagged tasks within a role. Has anyone co

[ansible-project] Galaxy having issue ?

2022-02-22 Thread Mark
Hello, do you know if there is any issue with galaxy ? Im having troubles to download collections via API. Web interface is pretty slow and some modules pages showing 404. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from

[ansible-project] Re: Fetch rootdse from LDAP server

2021-08-20 Thread 'Mark Tovey' via Ansible Project
=> { "changed": false, "results": [ { "defaultnamingcontext": "dc=mysrv,dc=example,dc=com", "dn": "" } ] } Leave the bind_dn null and the ldap_search module converts that to anonymous. And leave dn null to specify the

[ansible-project] Fetch rootdse from LDAP server

2021-08-19 Thread 'Mark Tovey' via Ansible Project
I am trying to use community.general.ldap_search to return the RootDSE from a LDAP server (RedHat Directory Server). The LDAP server is configured to allow anonymous access to the RootDSE (nsslapd-allow-anonymous-access: rootdse) and I can retrieve it with ldapsearch: ldapsearch -LLL -x -H lda

Re: [ansible-project] Reference collection root in role

2021-06-15 Thread 'Mark Faine' via Ansible Project
Excuse me, I meant to say: Can I include a handlers section in the role tasks? Sent from ProtonMail mobile Original Message On Jun 15, 2021, 16:35, 'Mark Faine' via Ansible Project wrote: > Yes I have been trying role_dir with a relative path but it's not be

Re: [ansible-project] Reference collection root in role

2021-06-15 Thread 'Mark Faine' via Ansible Project
Yes I have been trying role_dir with a relative path but it's not been working. Can I include a handlers section in the playbook tasks? That's been the point of confusion for me. I will update my bookmarks for libra chat. Thanks for the update. -Mark Sent from ProtonM

[ansible-project] Reference collection root in role

2021-06-15 Thread Mark Faine
dependent on the playbook having a specific handlers section, they are no longer self-contained. 2. Molecule doesn't know what to do with this and I can't figure out how to test a role when the handlers don't exist in the role. Thanks, -Mark BTW, looks like freenode is down. -

Re: [ansible-project] any_errors_fatal doesn't fail with unreachable hosts

2021-03-11 Thread 'Mark Faine' via Ansible Project
led=0 skipped=0 rescued=0 > ignored=0 > As you can see it does not continue with localhost, which will succeed if I > revert the inventory order. > > Regards, > > El jue, 11 mar 2021 a las 16:41, Mark Faine () escribió: > >> So, you guys think I should file an issue for this?

Re: [ansible-project] any_errors_fatal doesn't fail with unreachable hosts

2021-03-11 Thread Mark Faine
So, you guys think I should file an issue for this? I don't know what else to do. On Wednesday, March 10, 2021 at 4:18:54 PM UTC-6 Mark Faine wrote: > It still continues on after failing, it just does so one host at a time. > &

Re: [ansible-project] any_errors_fatal doesn't fail with unreachable hosts

2021-03-10 Thread Mark Faine
gt; > > What happens if you add serial:1 and max_fail_percentage:1 and removing > any_errors_fatal directive? > > On Wed, Mar 10, 2021, 21:35 Mark Faine wrote: > >> >> I'm trying to ping servers and fail immediately at the first one that is >> unreacha

[ansible-project] any_errors_fatal doesn't fail with unreachable hosts

2021-03-10 Thread Mark Faine
gather_facts: false any_errors_fatal: true tasks: - name: Ping Servers ping: I've purposely poisoned the inventory and yet it just says those hosts are unreachable and continues on its way, it should fail at the first unreachable host. Thanks, -Mark -- You received this mes

Re: [ansible-project] Determine last host in host list

2021-01-19 Thread 'Mark Tovey' via Ansible Project
Some good answers! Thanks! -Mark On Monday, January 18, 2021 at 3:17:32 PM UTC-8 flowerysong wrote: > On Monday, January 18, 2021 at 5:13:09 PM UTC-5 vbo...@gmail.com wrote: > >> On Mon, 18 Jan 2021 22:11:35 +0100 >> Vladimir Botka wrote: >> >> > O

[ansible-project] Determine last host in host list

2021-01-18 Thread 'Mark Tovey' via Ansible Project
I need to determine how many hosts are left to be worked on in a playbook run. I have set serial to 1 in the playbook so only one host will be worked on at a time, and I have a long pause at the bottom of the playbook to force a settling period between hosts. But if the current host is the la

Re: [ansible-project] Conditional actions based on host type?

2020-06-15 Thread Mark Farrington
hich is slightly easier to read. > How feasible this is depends a bit on how complex that json data > structure is. Do you have an example of that template? > > > > On Mon, 15 Jun 2020 at 12:06, Mark Farrington > > wrote: > > > > Hi, > > > >

Re: [ansible-project] Conditional actions based on host type?

2020-06-15 Thread Mark Farrington
Thanks, That did what I needed. On Monday, June 15, 2020 at 11:18:56 AM UTC+1, Ompragash wrote: > > Hi Mark, > > For your use-case, you can consider using Ansible magic variables > https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#accessing-informat

[ansible-project] Conditional actions based on host type?

2020-06-15 Thread Mark Farrington
Hi, New to ansible and looking for advice. I have an action inside a task (I think that is correct terminology). Something like this: - name: Cloudwatch deploy agent configuration for webserver template: src: templates/web-inst.json dest: "/opt/aws/amazon-cloudwatch-a

Re: [ansible-project] group_by with random key values

2020-06-12 Thread 'Mark Tovey' via Ansible Project
Unfortunately, I am under the constraint that I must use the password store that the company has chosen to use (Passwordstate). I have that part working fine. I am able to push passwords into it and pull them back out with no problem. But the general structure of your code will probably be

[ansible-project] group_by with random key values

2020-06-11 Thread 'Mark Tovey' via Ansible Project
des an undefined variable. The error was: 'my_group_var' is undefined" The '- hosts:' line seems to be expecting predefined names, with a '- hosts:' line for every possible group. That is not what we want to do here as there could be any number of inventory files, e

[ansible-project] Re: Ansible shell command adding backslash

2020-05-14 Thread Mark T.
Hello, Thanks for the feedback. Your code works with all special characters that I've used, but I run into a problem when there are two backslashes (\\) side-by-side in a password. Is there any way to fix this? Regards, Mark On Wednesday, April 1, 2020 at 1:14:36 PM UTC-4, Mark T.

Re: [ansible-project] Re: Every SSH connection logs mux_client_read_packet: read header failed: Broken pipe

2020-04-10 Thread Mark Hansen
long-lived TCP SSH connection per host. Which is to say, I don't think this "broken pipe" error is breaking connection pooling. On Fri, 10 Apr 2020 at 22:52, Mark Hansen wrote: > I'm investigating a bit further, I see the SSH command that ansible is > executing (look for

Re: [ansible-project] Re: Every SSH connection logs mux_client_read_packet: read header failed: Broken pipe

2020-04-10 Thread Mark Hansen
ons=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="pi"' -o ConnectTimeout=10 -o ControlPath=/Users/mark/.ansible/cp/c4fffefc6d pi4b '/bin/sh -c "/usr/bin/python3 && sleep 0"' Then the shell will hang waiting f

[ansible-project] Re: Every SSH connection logs mux_client_read_packet: read header failed: Broken pipe

2020-04-10 Thread Mark Hansen
# https://sketchingdev.co.uk/blog/profiling-ansible-playbooks-to-csv.html callback_whitelist = profile_tasks On Friday, 10 April 2020 22:29:36 UTC+10, Mark Hansen wrote: > > I'm also observing this problem too. > > ansible-playbook 2.9.5 > config file = /Users/mark/projects/pi

[ansible-project] Re: Every SSH connection logs mux_client_read_packet: read header failed: Broken pipe

2020-04-10 Thread Mark Hansen
I'm also observing this problem too. ansible-playbook 2.9.5 config file = /Users/mark/projects/pis/ansible.cfg configured module search path = ['/Users/mark/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /Users/ma

[ansible-project] Ansible shell command adding backslash

2020-04-01 Thread Mark T.
hell command using grep, cat or awk that doesn't cause this distortion? Thanks, Mark T. -- 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 ans

Re: [ansible-project] nfs client ansible

2020-03-27 Thread Mark Whaite
dump=0 > passno=2 > sate=mounted > > -- > 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 ansi

Re: [ansible-project] Very Very New to Ansible

2020-03-15 Thread Mark Whaite
Hi What OS is the first machine in that play? It doesn’t have python installed or more likely ansible cannot see it. You can set the python path for the machine in the inventory. But it would be would making sure it is installed on the off chance it is not. There is more under client requirement

Re: [ansible-project] no hosts matched

2020-03-11 Thread Mark Whaite
the web visit > https://groups.google.com/d/msgid/ansible-project/7912138a-9412-4cc5-9fb1-96d046112925%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/7912138a-9412-4cc5-9fb1-96d046112925%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Ma

Re: [ansible-project] Convert list to string in rendered Jinja template

2020-03-06 Thread Mark Whaite
> "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to ansible-project+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/10765862-e99b-44bf-bd

[ansible-project] multi process

2020-02-03 Thread Mark Anthony Garcia
has anyone tried multi process / multi threading in ansible? not sure if my term is correct, but this is available in Python and was wondering if anyone was able to apply the same in Ansible. thank you. Mark -- You received this message because you are subscribed to the Google Groups

Re: [ansible-project] Re: openldap for ubuntu

2020-01-19 Thread Mark Anthony Garcia
You can read this documentation on ansible. https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html Regards, Mark Garcia On Mon, Jan 20, 2020 at 8:23 AM Sandy Hung wrote: > yes,but learning ansible only 2 week so, I don;t how to define variables. > > > Ste

RE: [ansible-project] Export environment variables

2020-01-06 Thread &#x27;Mark Tovey - DSV' via Ansible Project
is started, and set SSH_AUTH_SOCK to that *before* you execute ansible. On Mon, Jan 6, 2020 at 11:43 AM 'Mark Tovey - DSV' via Ansible Project mailto:ansible-project@googlegroups.com>> wrote: You are missing the point. I am not trying to set SSH_AUTH_SOCK on the target host.

RE: [ansible-project] Export environment variables

2020-01-06 Thread &#x27;Mark Tovey - DSV' via Ansible Project
you need in Ansible, before executing Ansible. On Mon, Jan 6, 2020 at 11:24 AM 'Mark Tovey - DSV' via Ansible Project mailto:ansible-project@googlegroups.com>> wrote: In my test, the target host is localhost, the same place that the lookup runs. But the lookup call was o

RE: [ansible-project] Export environment variables

2020-01-06 Thread &#x27;Mark Tovey - DSV' via Ansible Project
Subject: Re: [ansible-project] Export environment variables lookups do not run on the target host, and are not affected by the `environment` keyword. On Mon, Jan 6, 2020 at 10:55 AM 'Mark Tovey' via Ansible Project mailto:ansible-project@googlegroups.com>> wrote: I nee

[ansible-project] Export environment variables

2020-01-06 Thread &#x27;Mark Tovey' via Ansible Project
I need to export some environment variables before running a task, but it appears that setting variables with "environment" does not export them; they remain local. For test, I wrote the following simple playbook: --- - hosts: localhost gather_facts: no environment: MYVAR: "TEST1"

[ansible-project] How can I get Ansible to only use Python 3.6?

2019-12-09 Thread Mark Bolden
I am on Centos 7 and I was trying to install Pyrax and seeing these errors: ERROR: os-service-types 1.7.0 has requirement pbr!=2.1.0,>=2.0.0, but you'll have pbr 1.10.0 which is incompatible. ERROR: python-keystoneclient 3.22.0 has requirement pbr!=2.1.0,>=2.0.0, but you'll have pbr 1.10.0 which

RE: [ansible-project] Ansible is totally broken after a OS upgrade

2019-10-29 Thread &#x27;Mark Tovey - DSV' via Ansible Project
nowhere. I will keep poking at it to see if I can narrow it down some. -Mark ------ Mark Tovey - UNIX Engineer DSV | 110 N Marine Dr. | Bldg 1 | Portland | Oregon | 97217 | USA ma

RE: [ansible-project] Ansible is totally broken after a OS upgrade

2019-10-29 Thread &#x27;Mark Tovey - DSV' via Ansible Project
. -Mark rpm -qa | grep python python2-pyasn1-0.1.9-7.el7.noarch python2-rhnlib-2.8.11.1-28.1.noarch libselinux-python-2.5-14.1.el7.x86_64 python-simplejson-3.3.1-2.1.x86_64 python-yubico-1.2.3-1.el7.noarch python-dateutil-1.5-7.el7.noarch python-lxml-3.2.1-4.el7.x86_64 python-pycurl-7.19.0-19.el7

[ansible-project] Ansible is totally broken after a OS upgrade

2019-10-28 Thread &#x27;Mark Tovey' via Ansible Project
ot;: {"micro": 5, "major": 2, "releaselevel": "final", "serial": 0, "minor": 7}, "type": "CPython", "has_sslcontext": true, "version_info": [2, 7, 5, "final", 0]}, "ansible_i

Re: [ansible-project] Administrator password parsing error while using run as

2019-09-30 Thread Mark Anthony Garcia
I think it's the spelling of your inventory in the playboook. You posted inventry.yml instead of inventory.yml, I assume. Mark On Mon, Sep 30, 2019, 7:28 PM Mauricio Tavares wrote: > On Mon, Sep 30, 2019 at 1:08 PM Kai Stian Olstad > wrote: > > > > On 30.09.2019 14

Re: [ansible-project] Loading variables with data from REST

2019-09-24 Thread Mark Anthony Garcia
I've used this using uri module, fust to get the cookies and use the cookie to run several api queries. I used jinja to template the data for API PUT and POST but it's a bit tricky with the formating. I'm not in front of my pc but perhaps first thing tomorrow I'll share what

RE: [ansible-project] More dynamic variables

2019-08-22 Thread &#x27;Mark Tovey - DSV' via Ansible Project
everything you could on your own. Life always looks easy after you are given the answer but by design is a struggle to get there :-) On Thu, Aug 22, 2019 at 11:13 AM 'Mark Tovey - DSV' via Ansible Project mailto:ansible-project@googlegroups.com>> wrote: As usual, the answer is simpl

RE: [ansible-project] More dynamic variables

2019-08-22 Thread &#x27;Mark Tovey - DSV' via Ansible Project
As usual, the answer is simple. I was trying to trying to include ".configdir" inside of the lookup plugin call. And now that I am looking at a working solution, I can see how this works. I can be very obtuse sometimes. Thanks again. -Mark -Original Message

[ansible-project] More dynamic variables

2019-08-21 Thread &#x27;Mark Tovey' via Ansible Project
I hate having to constantly go here to solve issues like this, especially when the issues I keep presenting are all so similar, but eventually I have to just give up trying to solve this on my own and ask. I want to define a structure in a vars file that looks like the following: myos

[ansible-project] Re: Some user of ansible_user

2019-08-21 Thread Mark Anthony Garcia
For me I use the local users from the ansible controllers by calling the "{{ lookup('env','USER') }}". On Tuesday, August 20, 2019 at 5:00:33 PM UTC+2, Karther wrote: > > Hey, > > I want to know if possible use a lot of user for ansible. > > Exemple, if i use *ansible_user=user1, user2* > > becau

RE: [ansible-project] Yet another dynamic variable problem

2019-07-30 Thread &#x27;Mark Tovey - DSV' via Ansible Project
And that works. The actual 'for' line looks like the following to get one package name per iteration: for pkg in $(echo "{{packages['myos' ~ ansible_distribution_major_version]|to_json|regex_replace('[,\[\]]', '')}}"); But

RE: [ansible-project] Yet another dynamic variable problem

2019-07-30 Thread &#x27;Mark Tovey - DSV' via Ansible Project
Okay, that makes sense and looks a lot simpler. I will try that. Thanks, -Mark -- -Original Message- From: ansible-project@googlegroups.com On Behalf

Re: [ansible-project] Re: Need Help for REST API integration with Ansible

2019-07-30 Thread Mark Anthony Garcia
It is best to use jinja template to create the bosy file and call it for scalability. This is what I do using data from mssql query. -- 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

[ansible-project] Re: Error in expansible script

2019-07-25 Thread Mark Anthony Garcia
like Stefan said rpm_key and with_items needs to be in the same line as name. On Friday, July 26, 2019 at 8:13:11 AM UTC+2, Shahzad Adil shaikh wrote: > > Hello All, > > I am trying to execute the following yml script but some errors are > occurring ,please some help me out this error . > > Sc

[ansible-project] Re: Problem change user with become or become_user

2019-07-25 Thread Mark Anthony Garcia
Hi Karther, I'm not an expert in ansible but with my current experience I believe this works for you because you are logging in as root which is the owner of /var/ folder. ansible_user is a default variable. Typically for other modules like lineinfile I add ansible_beome: yes, which means r

[ansible-project] Re: Viptela Support on Ansible

2019-07-25 Thread Mark Anthony Garcia
Hi Eugine, Great script. I have had success using ansible uri module for API calls to attach / detach feature templates. I have also a python script from cisco but I made my own via ansible for easier troubleshooting in the future and so that it would be human readable for my team. Mark

RE: [ansible-project] Yet another dynamic variable problem

2019-07-23 Thread &#x27;Mark Tovey - DSV' via Ansible Project
a dictionary. The debug task is able to interpret that but the lookup plugin is not. So now what? ------ -Original Message- From: 'Mark Tovey - DSV' via An

RE: [ansible-project] Yet another dynamic variable problem

2019-07-23 Thread &#x27;Mark Tovey - DSV' via Ansible Project
stdout: pkg=[u'os7package1', u'os7package2', u'os7package3'] stdout_lines: That is what I expected to see. So at least now I have proof that it will work. I need to go back to my original code and see where I went wrong

[ansible-project] Yet another dynamic variable problem

2019-07-23 Thread &#x27;Mark Tovey' via Ansible Project
I am trying to generate a variable name dynamically, but so far I have been stymied. I have lists whose names are based upon the OS name: myos7: - os7package1 - os7package2 - os7package3 myos8: - os8package1 - os8package2 - os8package3 I want to access these lists dy

[ansible-project] win_find not returning deduplicated files on share

2019-06-26 Thread Mark Benson
Hi all, I've been looking at the win_find module to get a list of .exe files from a Windows share but win_find is not returning the .exe files. The .exe files are deduplicated and looking at their properties in Windows explorer, they appear as: 'Size: 180MB' 'Size on disk: 0 bytes'. win_find

RE: [ansible-project] Re: Create a variable that contains other variable values with labels

2019-05-08 Thread &#x27;Mark Tovey - DSV' via Ansible Project
Whatever works is what counts. Thanks, -Mark From: ansible-project@googlegroups.com On Behalf Of Matthew Davis Sent: Tuesday, May 7, 2019 5:26 PM To: Ansible Project Subject: [ansible-project] Re: Create a variable that contains other variable values with labels Here is a

[ansible-project] Create a variable that contains other variable values with labels

2019-05-02 Thread &#x27;Mark Tovey' via Ansible Project
I have a list: list1 - value1 - value2 and I want to use set_fact create a new variable that contains these variables with a label in front of them, so that this debug task: - debug: msg: "{{var1}}" would result in output that looks like this: label value1 label

RE: [ansible-project] Complex dictionary access

2019-04-25 Thread &#x27;Mark Tovey - DSV' via Ansible Project
I knew it was going to be simple, although I thought I tried that one too. But that got it. Thanks! -- [Description: cid:image001.gif@01D09EC0.4CEB1A90]Mark Tovey

[ansible-project] Complex dictionary access

2019-04-25 Thread &#x27;Mark Tovey' via Ansible Project
I have a dictionary structure that looks like the following: myservers: DC1: CORE: 10.10.10.20 DMZ: 10.10.20.20 DC2: CORE: 10.10.10.30.20 DMZ: 10.10.10.40.20 DC3: CORE: 10.10.50.20 DMZ: 10.10.60.20 DC4: CORE: 10.10.70.20 DMZ: 10.10.80.20 And another dictionary that look

Re: [ansible-project] Ansible with gpg-agent prompts for private key password constantly

2019-04-04 Thread Mark Clarke
On Wednesday, 3 April 2019 23:41:54 UTC+2, Derek Murawsky wrote: > > What does your ~/.gnupg/gpg-agent.conf file? > https://www.gnupg.org/documentation/manuals/gnupg/Agent-Options.html > > It sounds almost like your auth socket isn't working properly. Meaning the > agent is being restarted and

[ansible-project] Ansible with gpg-agent prompts for private key password constantly

2019-04-03 Thread Mark Clarke
Hi all, We are using gpg-agent to provide ssh-agent functionality for the caching the private key passphrases. Some of the keys will be stored in the gpg keyring whilst some services such as ansible uses a standard ssh key. Our ansible scripts run without problems with the standard ssh-agent. W

RE: [ansible-project] replace module cannot crashes when encountering Danish characters

2019-03-19 Thread &#x27;Mark Tovey - DSV' via Ansible Project
A very good point. I was looking at it as a file of strings that needed to be modified. It didn't occur to me to look at the purpose of the file and any modules written directly for the file. Thanks!

RE: [ansible-project] replace module cannot crashes when encountering Danish characters

2019-03-19 Thread &#x27;Mark Tovey - DSV' via Ansible Project
Thanks! -- [Description: cid:image001.gif@01D09EC0.4CEB1A90]Mark Tovey - UNIX Engineer DSV<http://www.dsv.com/> | 110 N Marine Dr. | Bldg 1 | Portland | Oregon |

[ansible-project] replace module cannot crashes when encountering Danish characters

2019-03-19 Thread &#x27;Mark Tovey' via Ansible Project
is the best way to submit a bug? The version of Ansible we are currently using is 2.7.5. -Mark -- 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

[ansible-project]

2019-03-07 Thread Mark Joyner
-- 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, send email to ansible-project@googlegrou

[ansible-project] Ansible Cisco 5k Port-Profile issues

2019-01-28 Thread Mark Giusti
Hi everyone, I am rather new to network automation so do excuse my lack of knowledge on the subject. I wish to setup a playbook for a cisco nexus 5k that will assign a number of interfaces to a predefined port-profile. Is there anyone who could provide an example of such a playbook or if it is

[ansible-project] os_loadbalancer -> which api ist supported

2018-11-30 Thread Mark Eisenblätter
octavia v2 loadbalance? Thanks in advance, Mark -- 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 po

Re: [ansible-project] Re: Connect via NOT a bastion jump host

2018-11-28 Thread Mark Zhitomirski
ansible.com/ansible/2.7/plugins/connection/network_cli.html) is not a transport for Ansible and it cannot be used as such. Firing a single CLI command on the host and returning output is what it is used for I guess. Regards, Mark to add a fixed server and a couple of additional steps, so it looks l

Re: [ansible-project] Ansible constructs incorrect ssh

2018-11-28 Thread Mark Zhitomirski
Hi! My very limited knowledge of Ansible says it needs SFTP or at least SCP subsystems on the controlled side. Your company firewall allows only running ssh interactively - most probably it's not sufficient for Ansible. M. On Wed, Nov 28, 2018 at 6:49 AM Easy King wrote: > My firm's policy has

Re: [ansible-project] Re: Connect via NOT a bastion jump host

2018-11-28 Thread Mark Zhitomirski
can you kindly present your case? It's not easy to see what you are trying and where it fails. Regards, Mark On Tue, Nov 27, 2018 at 7:58 PM wrote: > As far as I have seen, it is not trivial - looks like although plugin for > network_cli is selected, the paramiko_ssh plugin is use

Re: [ansible-project] how to add ssh host-keys for lots of new cloud hosts?

2018-11-26 Thread Mark Zhitomirski
On Sat, Nov 24, 2018 at 12:25 PM Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On Thursday, 22 November 2018 12:22:42 CET Mark Zhitomirski wrote: > > Traditional approach is to leave it to a human operator and warn him of > a > > new host key. > > This

Re: [ansible-project] how to add ssh host-keys for lots of new cloud hosts?

2018-11-25 Thread Mark Zhitomirski
On Sat, Nov 24, 2018 at 12:25 PM Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On Thursday, 22 November 2018 12:22:42 CET Mark Zhitomirski wrote: > > Traditional approach is to leave it to a human operator and warn him of > a > > new host key. > > This

[ansible-project] Re: A couple of thousand new servers to add into ansible

2018-11-22 Thread Mark Zhitomirski
For starter you may look at mine: https://github.com/mz0/ansible-digitalocean So far it deals with one host, that part needs a thought. On Tuesday, November 20, 2018 at 9:00:51 PM UTC+3, Sloan Miller wrote: > > I am currently setting up to add a couple of thousand servers into ansible > config m

[ansible-project] how to add ssh host-keys for lots of new cloud hosts?

2018-11-22 Thread Mark Zhitomirski
Traditional approach is to leave it to a human operator and warn him of a new host key. This way is a no-go for automation and testing, a workaround is to disable host-key checks with ansible_ssh_extra_args: '-o StrictHostKeyChecking=no' like here: https://github.com/mz0/ansible-digitalocean/bl

[ansible-project] Inventory script for Tilaa Cloud

2018-09-11 Thread Mark Janssen
Hi, I've written (with a collegue) an inventory-script for the Tilaa cloud. Patches and improvements are welcome, but in the basis it should work at this time. AWX here uses it successfully. Code: https://github.com/sigio/ansible-inventory-tilaa -- Mark Janssen -- m...@sig-io.nl

Re: [ansible-project] Re: Access Splunk alerts through ansible

2018-08-28 Thread Mark Phillips
ble/latest/modules/lineinfile_module.html On Tuesday, 28 August 2018 18:31:57 UTC+1, Pradeep Drall wrote: > > Hi Mark, > > Thanks for your email. > > I would like to write a ansible script to create the splunk alert from > ansible, just like we create EC2 instance from an

[ansible-project] Re: Access Splunk alerts through ansible

2018-08-28 Thread Mark Phillips
Hello Pradeep, When you say 'access Splunk alerts' how do you mean? Would you like the Splunk alert to do something with Ansible? Maybe trigger an Ansible playbook run? If you can talk of the specific scenario that would be most helpful. Thanks! On Monday, 20 August 2018 17:37:21 UTC+1, Prade

[ansible-project] Re: networking not idempotent

2018-03-08 Thread Mark Tovey
On Thursday, March 8, 2018 at 1:43:44 PM UTC-8, Mark Tovey wrote: > > > I am experimenting with the networking modules in Ansible to try to > understand how we can use Ansible to manage our network devices. To that > end, I have written a simple playbook to apply an ACL t

[ansible-project] networking not idempotent

2018-03-08 Thread Mark Tovey
I am experimenting with the networking modules in Ansible to try to understand how we can use Ansible to manage our network devices. To that end, I have written a simple playbook to apply an ACL to a router. It works well, except I notice that each time the playbook is run, the change is

[ansible-project] Re: Ansible dynamic looping

2018-02-03 Thread Mark Lam
Hi Andrew Can you show us how you did it? -- 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 grou

[ansible-project] Re: Ansible Tower Installation failed in RHEL 7.4 with error pkg_resources.DistributionNotFound: awx==3.2.2

2018-02-02 Thread Mark Lam
Anyone can help me , please. Vào 14:48:44 UTC+7 Thứ Sáu, ngày 02 tháng 2 năm 2018, Mark Lam đã viết: > > Hi all > > The installation fails in the step "Migrate the Tower database schema" > after run file setup.sh in ansible-tower-setup-3.2.2 > > May I miss any set

Re: [ansible-project] Re: when clause with lookup plugn works for template but not for uri

2017-12-21 Thread Mark Eisenblätter
g task could probably be helpful for > answering your question. > > On Wed, Dec 20, 2017 at 9:02 AM, Mark Eisenblätter > wrote: > >> Ok forget: >> ansible-playbook 2.4.1.0 >> >> >> On Wednesday, December 20, 2017 at 4:01:04 PM UTC+1, Mark Eisenblät

[ansible-project] Re: when clause with lookup plugn works for template but not for uri

2017-12-20 Thread Mark Eisenblätter
Ok forget: ansible-playbook 2.4.1.0 On Wednesday, December 20, 2017 at 4:01:04 PM UTC+1, Mark Eisenblätter wrote: > > hello list, > > i have a strage problem. ># do we need to readd server to cluster in case of rebuild > - name: get etcd server > set_fact:

[ansible-project] when clause with lookup plugn works for template but not for uri

2017-12-20 Thread Mark Eisenblätter
_from_etcd_api', etcd_members.results, server['name']) == None): 'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'name'\n\nThe error appears to have been in '/build/tasks/add_etcd_to_cluster.yaml': line 35, column 7, but may\nbe elsewh

[ansible-project] Re: Ansible 1.9.1 SSH Error from ping module to Junos

2017-11-15 Thread Mark Reyes
This got it for me! Ansible threw out so many weird errors, once local connection was specified... they all went away. On Friday, June 12, 2015 at 5:24:05 PM UTC, Prasanna Siriki wrote: > > Hi Matt, > > in the /etc/ansible/hosts > host1 ansible_connection=local ansible_ssh_host=10.71.16.5 > > h

[ansible-project] Using bash in ansible playbook from cron

2017-11-15 Thread mark . haney
Bear with me here, since this is one odd problem. I have a playbook that I'm trying to run from cron. One step in the playbook is to execute a series of commands in a plain text file like: rd.pl rd.pl This has to be done using 'bash '. When running this in a console it works just fine. H

[ansible-project] Delegate to a group with_items or another way?

2017-11-06 Thread mark . haney
I've got a case where I need to run a command on a specific group of hosts when a certain file exists. The playbook is being run on two host groups (a and b). I'm trying to figure out the best way to create the logic to make this work. Currently I've got this: - name: Run A on each group i

[ansible-project] Delegating group of tasks in a role

2017-11-01 Thread mark . haney
Is there a way to delegate a group of tasks to a certain host from inside a role? As in, I want to run: pull a git repo, run composer install and make on one host then take the compiled files to other hosts in the role. Does that make sense? -- You received this message because you are subsc

Re: [ansible-project] Question concerning multiple -hosts: entries in a playbook

2017-10-31 Thread Mark Haney
On 10/31/2017 02:53 PM, Brian Coca wrote: You can set the 2nd play like this: - hosts: '{{target|default('devel')}}' then call it: ansible-playbook ... -e 'target=production' Huh.  I hadn't thought about using that method.  I'll give it a shot.  Tha

[ansible-project] Question concerning multiple -hosts: entries in a playbook

2017-10-31 Thread mark . haney
There might be a better way to do this, but I'm unaware of it, so I'm asking the list. I have a playbook that has two parts to it: 1. Pulls branch from git repo to the localhost (ie the Ansible server) 1a. compiles the code (it's a PHAR file, so nothing too onerous) 2. Pushes the code to our exte

[ansible-project] using ansible without creating a root shell?

2017-10-27 Thread Mark Lucia
nvironment? Any guidance is most welcome. Regards - Mark -- 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. T

[ansible-project] Deprecated Warning: Using variables for task params is unsafe, but

2017-10-16 Thread Mark Eisenblätter
of params that we use in our environment, with the normal problem that i need to alter every task wen we have some basic change. And something like 'meta:' is different for any type of server? does anybody have some idea to tackle this problem? Thanks in advanced Mark -- You rec

[ansible-project] Trirpwire Installation

2017-09-30 Thread mark funcion
Hi Peeps, Need your insight on this. I am trying to install tripwire on our nodes. Install files are coming from a local repo and we fetch it via WGET in .tgz extension. Individual steps in a host are like this. - cd /opt - wget the .tgz file - extract tar - rpm -ivh - run a shell to update

[ansible-project] Ansible Tower Playbook issue: need to limit SSH connections to specific Cisco switch hosts within each task

2017-09-12 Thread mark . kleinhaus
I'm new to Ansible Automation and hopefully this is a simple fix- Running Ansible Tower 2.4.4 on Windows Server 2012 R2. I'm using the ios_command and ios_config modules. I have a group called "XYZ" that contains hosts "1.1.1.1" and "2.2.2.2". I want each task in the playbook to only attempt S

Re: [ansible-project] ssh-copy on new multiple hosts

2017-09-01 Thread mark funcion
Sorry for the confusion. Yes, i mean "ssh-copy-id" and hoping to send my pubkey on the new 50 hosts via ad-hoc ansible. I already tried disabling host_key_checking in the config file but no luck. I guess our machines would require ssh keys and the only option for me is to send it to thise machi

[ansible-project] ssh-copy on new multiple hosts

2017-08-30 Thread mark funcion
Hi guys/gals, Any way I can do ssh-copy on multiple hosts via Ansible ad-hoc? I have already added around 50 new hosts in the ansible_hosts inventory file but hit a wall in copying ssh to those new hosts. -- You received this message because you are subscribed to the Google Groups "Ansible Pr

Re: [ansible-project] Syntax Issues for When Conditional

2017-08-18 Thread Mark Huang
That did the trick! Thank you! On Friday, August 18, 2017 at 3:03:23 PM UTC-5, Kai Stian Olstad wrote: > > On 17. aug. 2017 17:18, Mark Huang wrote: > > What is the proper syntax for trying to do something like this? It works > > fine but it gives me a warning that says not

[ansible-project] Syntax Issues for When Conditional

2017-08-17 Thread Mark Huang
on_state == 'present' but that just goes into the customer dictionary looking for aws_cloud_formation. I would like to take a variable 'customer' and use it as the conditional. It works fine, but what is the correct syntax for getting it to work without giving a warning.

[ansible-project] mysql_db module, variables and hyphenated DB names

2017-08-15 Thread mark . haney
So, I'm trying to built a task list for backing up our primary DB server. The issue is that ONE database has a hyphenated name (no, I'm not the one that did something that stupid). Here's the task that bombs: - name: backup mysql vars: exclude_db: - "information_schema" - "pe

Re: [ansible-project] Incorrect sudo password on HP-UX

2017-08-02 Thread Mark Tovey
assword or just removing special characters altogether from my password, Ansible still fails. I even set sudoers to allow me to run commands with no password, and that still fails through Ansible unless I disable pipelining. The bottom line is that there issues with the combination of

  1   2   3   4   5   >