[ansible-project] User management by ansible - any ideas ?

2014-08-12 Thread P
I would like to use ansible for our user management (I know there are software for it like LDAP but not for now ...). This is typical definition of users and their groups: Groups and users: - group1 - user1 - user2 - group2 - user1 - user2 - user3

[ansible-project] How to abort just one role and let the others run

2014-09-17 Thread P
Hi all, we have a playbook with several roles in it: roles: - role1 - role2 - role3 - role4 - role5 - roleX ... These roles install some software but each checks at the very begin if the software is already installed and if it is - it aborts (using fail module). It turns out that

Re: [ansible-project] How to abort just one role and let the others run

2014-09-17 Thread P
On Wednesday, September 17, 2014 3:45:15 PM UTC+1, James Cammarata wrote: You will need to handle failures and skipping on a per-task basis - that logic does not exist at the role level. As Karl noted, you should not use the fail module in this case. With Ansible (and just about every

Re: [ansible-project] How to abort just one role and let the others run

2014-09-17 Thread P
On Wednesday, September 17, 2014 3:52:33 PM UTC+1, Patrick Ansible-ML wrote: On 17-09-14 14:15, P wrote: I would recommend changing the roles so that installation of new software is skipped (instead of failing) when the software is already present... What do you

Re: [ansible-project] How to abort just one role and let the others run

2014-09-18 Thread P
: check to see if something is already done whatever: a=b c=d register: is_done - name: include the rest of the role tasks from another file if the above thing isn't done include: role_tasks.yml when: not is_done On Wed, Sep 17, 2014 at 10:02 AM, P p@cmcmarkets.com javascript

Re: [ansible-project] IOError: [Errno 25] Inappropriate ioctl for device

2015-05-19 Thread P
# git clone git://github.com/ansible/ansible.git --recursive Initialized empty Git repository in /root/ansible/.git/ remote: Counting objects: 81678, done. remote: Compressing objects: 100% (82/82), done. remote: Total 81678 (delta 34), reused 0 (delta 0), pack-reused 81585 Receiving objects: 100%

Re: [ansible-project] IOError: [Errno 25] Inappropriate ioctl for device

2015-05-19 Thread P
I have two yaml libraries: one is from standard RHEL 6 channel and the other is from pip. Can I somehow point which should be used ? On Thursday, April 9, 2015 at 2:56:23 PM UTC+1, Brian Coca wrote: now it looks like your yaml library is not in sync with itself -- You received this

Re: [ansible-project] IOError: [Errno 25] Inappropriate ioctl for device

2015-04-15 Thread P
On Wednesday, April 15, 2015 at 11:17:43 AM UTC+1, P wrote: On Wednesday, April 8, 2015 at 5:03:43 PM UTC+1, Brian Coca wrote: The current git checkout, its easy to use in parallel of any other version and only for this test BTW, if I install it from github how do I switch between each

Re: [ansible-project] IOError: [Errno 25] Inappropriate ioctl for device

2015-04-15 Thread P
On Wednesday, April 8, 2015 at 5:03:43 PM UTC+1, Brian Coca wrote: The current git checkout, its easy to use in parallel of any other version and only for this test BTW, if I install it from github how do I switch between each release/branch ? -- You received this message because you

[ansible-project] IOError: [Errno 25] Inappropriate ioctl for device

2015-04-08 Thread P
Hi all, while trying to run one of our playbook on RH 5.4 (I know, very old ) I get the following error: # ansible-playbook -i hosts.local our_playbook.yml --limit=server --tags=some-users PLAY [some.hosts] *** GATHERING

Re: [ansible-project] IOError: [Errno 25] Inappropriate ioctl for device

2015-04-08 Thread P
# ansible-playbook --version ansible-playbook 1.8.4 configured module search path = /usr/share/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

Re: [ansible-project] IOError: [Errno 25] Inappropriate ioctl for device

2015-04-08 Thread P
You mean 1.9 or 2.0 ? I am afraid to use it since we constantly use Ansible on our production. On Wednesday, April 8, 2015 at 3:12:13 PM UTC+1, Brian Coca wrote: try current development On Wed, Apr 8, 2015 at 9:00 AM, P p@cmcmarkets.com javascript: wrote: # ansible-playbook

Re: [ansible-project] IOError: [Errno 25] Inappropriate ioctl for device

2015-04-09 Thread P
# git clone git://github.com/ansible/ansible.git --recursive Initialized empty Git repository in /tmp/a/ansible/.git/ remote: Counting objects: 78344, done. remote: Compressing objects: 100% (42/42), done. remote: Total 78344 (delta 12), reused 0 (delta 0), pack-reused 78300 Receiving objects:

[ansible-project] How to get rid of unnecessary data displayed on the screen ?

2015-06-09 Thread P
Hi all, I have just updated our ansible to 1.9.1. It turned out that when I run it, i.e: ansible-playbook -i hosts some.yml --list-hosts --list-tasks I also get the following data on the screen: play #1 (group.main): host count=2 server1 server2 play #1 (group.main):TAGS: []

Re: [ansible-project] How to get rid of unnecessary data displayed on the screen ?

2015-06-10 Thread P
at same time. On Tue, Jun 9, 2015 at 6:11 AM, P p@cmcmarkets.com javascript: wrote: Hi all, I have just updated our ansible to 1.9.1. It turned out that when I run it, i.e: ansible-playbook -i hosts some.yml --list-hosts --list-tasks I also get the following data

Re: [ansible-project] How to get rid of unnecessary data displayed on the screen ?

2015-06-16 Thread P
Any suggestion / recommendation / help ? -- 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,

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
I did this way as well. And no change - still the same error ... On Friday, December 4, 2015 at 2:29:57 PM UTC, Brian Coca wrote: > > Those don't work, they are autogenerated, go to releases.ansible.com > -- You received this message because you are subscribed to the Google Groups "Ansible

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
Well, of course if you forget about "make install" (me) it won't work ... If you remember about it - it works. But using "make install" installs files into /usr/lib/python2.6/site-packages/ Is there any way I can keep all ansible related files in i.e. /opt/apps/ansible and not mess with native

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
I also downloaded ansible-1.9.4-1.tar.gz and still have the same problem: # ansible --version Traceback (most recent call last): File "/opt/apps/ansible/bin/ansible", line 36, in from ansible.runner import Runner ImportError: No module named ansible.runner -- You received this message

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
This one: https://github.com/ansible/ansible/archive/v1.9.4-1.tar.gz On Friday, December 4, 2015 at 2:24:52 PM UTC, Brian Coca wrote: > > Are you using the release tarball or the github ones? > -- You received this message because you are subscribed to the Google Groups "Ansible Project"

[ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
I've forgotten to say that this is on Red Hat 6.5. -- 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

[ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
gt; Jon > > > > On Friday, December 4, 2015 at 12:42:11 PM UTC, P wrote: >> >> Hi all, >> >> I am trying to install ansible using "git clone" and it fails (have done >> that before a few times and it worked): >> >> # git clone ht

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
# make clean Cleaning up distutils stuff rm -rf build rm -rf dist Cleaning up byte compiled python stuff find . -type f -regex ".*\.py[co]$" -delete Cleaning up editor backup files find . -type f \( -name "*~" -or -name "#*" \) -delete find . -type f \( -name "*.swp" \) -delete Cleaning up manpage

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
Just for the record: # echo $PYTHONPATH /opt/apps/ansible/lib: # echo $PATH /opt/apps/ansible/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin: /sbin:/bin:/usr/sbin:/usr/bin:/opt/IBM/nmon:/root/bin -- You received this message because you are subscribed to the Google Groups "Ansible

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
And I have just tried this one with no change (still problem): https://releases.ansible.com/ansible/ On Friday, December 4, 2015 at 2:26:33 PM UTC, P wrote: > > This one: > https://github.com/ansible/ansible/archive/v1.9.4-1.tar.gz > > On Friday, December 4, 2015 at 2:24:52 PM

[ansible-project] Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-04 Thread P
Hi all, I am trying to install ansible using "git clone" and it fails (have done that before a few times and it worked): # git clone https://github.com/ansible/ansible.git --recursive Initialized empty Git repository in /opt/apps/ansible/.git/ remote: Counting objects: 102057, done. remote:

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-06 Thread P
On Saturday, December 5, 2015 at 2:45:44 AM UTC, Brian Coca wrote: > > ... > i just find git clone method easier. > > Hi Brian, I also find git clone method easier except ... it doesn't work ... I mean which step is missing from my list of steps (I am just following the steps from official

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-11 Thread P
Ok. Once again repeating steps from the official webpage: # git clone https://github.com/ansible/ansible.git --recursive Initialized empty Git repository in /opt/apps/ansible/.git/ remote: Counting objects: 102829, done. remote: Compressing objects: 100% (5/5), done. remote: Total 102829 (delta

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-11 Thread P
# /usr/bin/env python --version Python 2.6.6 -- 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

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-11 Thread P
"Freshly" cloned again today: # ls -la /opt/apps/ansible/lib/ansible/errors/__init__.py -rw-r--r-- 1 root root 7738 Dec 11 11:42 /opt/apps/ansible/lib/ansible/ errors/__init__.py I also don't understand what is going on. When I clone it it has many releases in it. Don't I need to checkout one of

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-11 Thread P
Which dir ? /opt/apps/ansible ? I remove it entirely and clone it again. On Friday, December 11, 2015 at 3:05:32 PM UTC, Brian Coca wrote: > > have you been cleaning out the dir between 'attempts'? > > > > -- > Brian Coca > -- You received this message because you are subscribed to the

Re: [ansible-project] Re: Ansible installation from source (git clone) gives "ImportError: No module named ansible.runner"

2015-12-14 Thread P
This morning have discovered something: when I run "ansible --version" just after "source ./hacking/env-setup" command, it works well (I have the correct output). But when I copy the new PATH, PYTHONPATH and MANPATH to a profile and re-login it doesn't work. -- You received this message

[ansible-project] Ansible 1.9 - how to combine variables from different sources

2016-09-22 Thread P
overwrite the variable taken from "{{ ansible_distribution }}/{{ ansible_distribution_major_version}}.yml" with values taken from *common_list_of_packages_for_both_rhel_releases.yml* In ansible 2 we can use jinja2 "combine" filter but we still use Ansible 1.9 Is there any elegant way in Ans

Re: [ansible-project] Re: Facing Ansible bug & how to use the most recent Ansible branch with fixed code ?

2017-07-04 Thread P
Anyone experiencing the same bug ? Or not ? On Friday, June 23, 2017 at 9:26:54 AM UTC+1, P wrote: > > Sorry - I haven't sent any update but after I sent this post did the same > test with devel branch and have the same error. > Raised a bug: https://github.com/ansible/ansible/

[ansible-project] Facing Ansible bug & how to use the most recent Ansible branch with fixed code ?

2017-06-21 Thread P
Hi all, I am trying to use Ansible vmware_guest module to clone template to VM but having the following issue: fatal: [localhost -> localhost]: FAILED! => { "changed": true, "failed": true, "invocation": { "module_args": { "annotation": null,

[ansible-project] Re: Facing Ansible bug & how to use the most recent Ansible branch with fixed code ?

2017-06-21 Thread P
/ansible/lib/ansible executable location = /opt/apps/ansible/bin/ansible python version = 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] Should I raise a bug ? On Wednesday, June 21, 2017 at 9:45:56 AM UTC+1, P wrote: > > Hi all, > > I am trying to

Re: [ansible-project] Re: Facing Ansible bug & how to use the most recent Ansible branch with fixed code ?

2017-06-23 Thread P
Sorry - I haven't sent any update but after I sent this post did the same test with devel branch and have the same error. Raised a bug: https://github.com/ansible/ansible/issues/25967 On Wednesday, June 21, 2017 at 6:04:30 PM UTC+1, Brian Coca wrote: > > But in your error you were using

[ansible-project] Pipeline in command error

2014-07-14 Thread Paco p
Hello, I need interact with a script, so I have a script as(/tmp/a.sh): read var if [[ $var == y ]]; then exit 0; else exit 1; fi And in my playbook - name: execute script command: yes | bash /tmp/a.sh And I am getting the following: failed: [192.168.1.104] = {failed: true, item:

Re: [ansible-project] Pipeline in command error

2014-07-15 Thread Paco p
', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/user/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=pi', '-o

Re: [ansible-project] Pipeline in command error

2014-07-16 Thread Paco p
to deal with dropbear, for instance, and the MOTD gets sent every single time. (Though that's dealt with) If you're so inclined, some debugging could be interesting. On Tue, Jul 15, 2014 at 12:44 PM, Paco p paco...@gmail.com javascript: wrote: Ansible 1.6 Host machine: Ubuntu 14.04 LTS

[ansible-project] Application rollback with ansible

2015-05-26 Thread Jack P
Hi! I was hoping to canvas opinion on how people using ansible handle rollbacks. We're migrating a large multihost multi-app project and have have two competing opinions: 1. Utilise idempotency and simply redeploy a previous working set on a failure (which should only deploy the systems which

[ansible-project] how to extract a substring from a variable value inside a template

2016-06-23 Thread n. p.
Hello, Does someone knows how to extract a substring from a variable? For example; name: repo-name/some_dir subdir: /some_dir i want to perform in a template something like: ansible-pull -d /{{ name - subdir }} and pull contents will be place in /repo-name is this possible? Thank you!

[ansible-project] yum groupinstall "Development tools" for mutliple Linux-based OS

2016-07-27 Thread Igor P.
Hi, I am new to Ansible and I am working a playbook that requires to have Development-tool installed on on CentOS based server. However, I was thinking about writing playbook that will be applicable to Debian-based OSs such as Ubuntu for example. What would be the module that can install

[ansible-project] Having trouble with Ansible Ad-hoc commands (page 28 of 'Ansible for DevOps' book)

2016-08-02 Thread P Retzel
>From page 28 in the book "Ansible for DevOps", the author says to try the following examples: $ ansible multi -s -a "service ntpd stop" $ ansible multi -s -a "ntpdate -q 0.rhel.pool.ntp.org" $ ansible multi -s -a "service ntpd start" Unfortunately, they each fail with the message:

Re: [ansible-project] Having trouble with Ansible Ad-hoc commands (page 28 of 'Ansible for DevOps' book)

2016-08-03 Thread P Retzel
On Wednesday, August 3, 2016 at 3:24:09 AM UTC-4, Kai Stian Olstad wrote: > Ansible will log in to the host with a user and in your case do a sudo. > This user don't have the correct path set and you will need to write > full path until you sort that out. > > Is there a reason why Ansible

[ansible-project] can't get embedded quotes to work in replace string of lineinfile

2016-07-07 Thread Leo P
I have tried escaping characters but it didn't seem to make any difference. According to the documentation I've seen, this should work: - name: Change keyboard layout to U.S. lineinfile: dest=/etc/default/keyboard regexp='XKBLAYOUT="gb"'

[ansible-project] Re: Simple cisco IOS show version

2016-09-02 Thread Valérie P
Hello John, I've had a little bit of trouble with the ios_* modules and thanks to the source found in this sample it is now functional, anyhow I do not understand every line of it, and particularly the "connection: local" one. What is it used for? The ansible documentation refer to the

Re: [ansible-project] ios clear command expect confirm

2016-10-07 Thread Valérie P
t: 'Clear "show interface" counters on this interface > [confirm]' > response: c > with_items: > - "{{ lan_int }}" > when: > - '"ce" in group_names' > > > On Wed, Sep 21, 2016 at 11:42 AM, Valérie P <valeri...

[ansible-project] ios clear command expect confirm

2016-09-21 Thread Valérie P
Hi, I have a question regarding the network core module "ios_command". I want to clear counters on some interfaces through a play. When I send the command directly through an SSH connection, the process is the following : rtr-site6#clear counters GigabitEthernet 0/0 Clear "show interface"

Re: [ansible-project] Role played on all hosts, condition "when: 'group' in group_names" not correctly evaluated

2016-09-23 Thread Valérie P
Thank you very much Brian! Le jeudi 22 septembre 2016 18:47:15 UTC+2, Brian Coca a écrit : > > a) you cannot make a role conditional, any 'when' is just applied to the > tasks in the role > b) with_ runs before when: (so you can make execution conditional by item) > c) use |default({}) to skip

[ansible-project] Re: logging in the client

2016-09-20 Thread Yorick P
If you run a playbook, you can also use the --diff options, to see what changes. More info see http://docs.ansible.com/ansible/playbooks_checkmode.html#showing-differences-with-diff On Tuesday, August 30, 2016 at 12:48:58 PM UTC+2, sabarinath g wrote: > > Hi, > > I wanted to know Does

[ansible-project] Role played on all hosts, condition "when: 'group' in group_names" not correctly evaluated

2016-09-22 Thread Valérie P
Hi, I am using Ansible 2.2.0 to configure network devices. I have a problem with the evaluation of a condition using "when: 'group' in group_names'. The playbook is : - name: Configure topologies hosts: "{{ TOPO }}" strategy: debug vars_files: - "vars_file/{{TOPO}}.yml" roles:

Re: [ansible-project] Ansible in the docker container?

2016-11-08 Thread Yorick P
I faced the same thing, and I solved this by putting my config files or data in in a host directory and mounted this as a data volume (https://docs.docker.com/engine/tutorials/dockervolumes/). I run Ansible from my desktop, run a playbook and template out or copy the necessary files to the

[ansible-project] EFS Module Not Updating Existing EFS Filesystems

2017-03-30 Thread Nick P
The EFS module is not updating an existing EFS filesystem. It seems to creating a new filesystem no matter what information I provide. When looking at the code it looks like it creates a new filesystem every time no matter what. So maybe this is expected behavior. But the documentation

[ansible-project] Re: Can not attach CM rom in Vmware

2017-06-19 Thread David P
Me too - Still looking for a solution. If anyone knows how to connect it that would be really helpful, 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 from it, send an email

Re: [ansible-project] Problem with groups in inventory

2018-01-13 Thread chaitanya p
 On Sat, Jan 13, 2018 at 6:12 AM, Chris Barlock wrote: > Thank you! Really odd, though, that it worked on Ubuntu without the > braces, but failed on RedHat. > > On Friday, January 12, 2018 at 1:10:59 PM UTC-5, Kai Stian Olstad wrote: >> >> On Friday, 12 January 2018

[ansible-project] sudo su - oracle not working

2018-02-07 Thread P L
Hi, I'm trying to to Oracle patch - name: opatch lsinv shell: /app/oracle/OPatch/opatch lsinv become: true become_method: sudo become_user: oracle become_flags: 'su - /bin/sh' it is faling saying PERMISSION DENIED.. -- You received this message because

Re: [ansible-project] ansible jinja2 template to loop through variables that has multiple values for each variable on a per host basis

2019-01-20 Thread Nagaraj P
Hi Mauricio, Yes I have read for loop in ansible. But I'm not aware how to loop through the variables thats placed in the host inventory file. I need assistance in knowing where to place my variable list . On Sun 20 Jan, 2019 10:05 am Mauricio Tavares On Sat, Jan 19, 2019 at 11:04 AM wrote:

[ansible-project] Service restart in Windows Operating system using playbooks

2018-12-05 Thread Suma P
Hi Team , I am trying to restart the spooler service in windows remotely by creating playbooks in RHEL Operating system .its trowing below error.kindly suggest me to resolve this issue. playbook content : --- - name: Restart a service win_service: name: spooler state: restarted

[ansible-project] Re: From RHEL not able to connect to windows VM

2018-11-29 Thread Suma P
t > > --Tony > On Wednesday, November 28, 2018 at 4:24:40 AM UTC-8, Suma P wrote: >> >> Hi Team , >> >> I am trying to do a POC on Ansible first time.I am using RHEL as a master >> and Windows 2012 as a client .Installed ansible 2.7 in RHEL and winrm in

[ansible-project] From RHEL not able to connect to windows VM

2018-11-28 Thread Suma P
Hi Team , I am trying to do a POC on Ansible first time.I am using RHEL as a master and Windows 2012 as a client .Installed ansible 2.7 in RHEL and winrm in windows and done inventory entries in RHEL . i am getting below error.Kindly help .. *ERROR* [root@Amaster group_vars]# ansible web -i

[ansible-project] packer with ansible

2019-01-26 Thread chaitanya p
could you please help me with script & process, how to create ami using packer with ansible, installing aplications available in ami for example tomcat -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and

Re: [ansible-project] vault not decrypting in loops

2019-04-03 Thread P. Varsha
hello, try once instead of two quotation use one. thanks On Tue, Apr 2, 2019 at 9:01 PM Guillaume D wrote: > Hello, > > In some way, my vault's variables are not decrypted in my playbook > > I got a all.yml and vault.yml in the back. > > I meet this situation: > > - set_fact: >

Re: [ansible-project] How to avoid backslash and quote from variable

2019-04-03 Thread P. Varsha
Hello, I am not working on cisco switches but try once - "show run interface "\Gi9/1\" | i no cdp" . check your commands once your using - "show run interface \" right because of that you got error. Thanks On Tue, Apr 2, 2019 at 8:28 AM bikram40 wrote: > Hello, > > I am running an audit

[ansible-project] Parallelization for with_ loops

2019-05-27 Thread P S
Hello everyone, I am using delegate_to in combination with nested loop in order to create a custom distribution system between a group of hosts. The problem is that the nested loop is running sequentially, meaning that it has firstly to finish the task in the first host before proceeding with

[ansible-project] Ansibleundefinederror

2019-05-21 Thread Nagaraj P
What does ansible undefined error indicate ? I'm having a j2 template that creates a yml file with variables. And I get this undefined error, although I've never used that variable in my tasks . -- You received this message because you are subscribed to the Google Groups "Ansible Project"

Re: [ansible-project] include_playbook / include tasks from Bitbucket?

2019-04-23 Thread P. Varsha
hello, Once check your file location. On Wed, Mar 20, 2019 at 7:55 PM TOB wrote: > Hi everyone, > > short summary: I have a playbook from where I wanna start other playbooks > hosted on Bitbucket. In short words: Got a server and want to clone > repository on Bitbucket where are all the other

Re: [ansible-project] ERROR! no action detected in task

2019-12-06 Thread P. Varsha
give one space before - name:EC2 Facts On Fri, Dec 6, 2019 at 7:22 PM S.Mahesh Kumar wrote: > I am receiving error. > can someone pls help me. > code > --- > - hosts: all > gather_facts: yes > vars: >aws_region: us-east-1b > tasks: > - import_tasks: ../Global/aws.yml > vars: >

Re: [ansible-project] https://github.com/ansible/ansible/issues/41263 still issue on version 2.9.1

2019-12-01 Thread claudio p
thank you for answer , is it possible to use `changed_when: false` on ad-hoc command mode ? On Thursday, 28 November 2019 19:41:10 UTC, Felix Fontein wrote: > > Hi, > > > Running simple shell commands now produces CHANGED instead of SUCCESS. > > "now" has been for quite a while now. And as

[ansible-project] https://github.com/ansible/ansible/issues/41263 still issue on version 2.9.1

2019-11-28 Thread claudio p
Running simple shell commands now produces CHANGED instead of SUCCESS. ansible --version ansible 2.9.1 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/myuser/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location =

Re: [ansible-project] Re: I have problems with de expect module

2019-10-08 Thread P. Varsha
terms of this EULA, SAMSUNG ELECTRONICS >> grants you the \r\nfollowing licenses: you may install and use as many >> copies >> of the SOFTWARE PRODU\r\nCT, or any prior version for the same operating >> system, for use strictly for the\r\n personal use, on any computer own

Re: [ansible-project] pip docker install

2019-10-03 Thread P. Varsha
can you share the screenshot if is it possible?.i tell u in better way On Thu, Oct 3, 2019 at 11:13 PM Alfredo De Luca wrote: > still doesn't work. everything I do the first time doesn't work and the > second time it does > > very very weird... > > > On Thu, Oct 3, 2019

Re: [ansible-project] pip docker install

2019-10-02 Thread P. Varsha
hello, check once from command prompt *pip install docker* under the python scripts folder it will work. thanks, varsha I’m protected online

Re: [ansible-project] Create Key value pair

2020-02-24 Thread Sivaraman P
Thank you for your response. I just Showed it for example only... Actually I am getting those keys from register variable(out1) On Mon, 24 Feb 2020, 18:43 Stefan Hornburg (Racke), wrote: > On 2/24/20 2:06 PM, Sivaraman P wrote: > > I have list of items to be executed in the command a

[ansible-project] Create Key value pair

2020-02-24 Thread Sivaraman P
I have list of items to be executed in the command and I have to save the result in stdout for each item to the same item. Ex: hosts: dev tasks: - name: get variable shell: cat file #this file contain the list of items that I need to run the command register: out1 - name:

Re: [ansible-project] Create Key value pair

2020-02-24 Thread Sivaraman P
er. > - Which command did you run, and what actual output did you get from > that (copied as plain text - not as images, attachments, or > screenshots) > - What the relevant tasks/playbooks/code/variables look like. > > > > On Mon, 24 Feb 2020 at 14:07, Sivaraman P

Re: [ansible-project] Execut script with Ansible

2020-01-28 Thread P. Varsha
can you please share what actually error log you are getting. On Tue, Jan 28, 2020 at 4:13 PM Karther wrote: > Hello, > > I have one script python script.py with this content : > > *#!/usr/bin/python* > > *import pymssql* > > *conn = pymssql.connect(host="ihospisql02", user="sa_ofs", >

Re: [ansible-project] Ansible and Jenkins

2020-01-28 Thread P. Varsha
setup the ubuntu root directory path on the jenkins environment. On Tue, Jan 28, 2020 at 4:28 PM Sai Prasha wrote: > I Installed Anisble Server on Windows by enabling WSL (Windows system for > Linux ) having Ubuntu Client > Now I have Jenkins Installed on the same Windows machine but when i try

Re: [ansible-project] Ansible - Environment variable

2020-02-20 Thread Sivaraman P
}}" > loop: "{{ dotenv_pairs.split() }}" > > - name: Execute with custom environment vars > shell: echo $HOME $MYVAR > environment: "{{ my_env }}" > become: yes > become_user: > > > > On Thu, 20 Feb 202

Re: [ansible-project] Ansible - Environment variable

2020-02-21 Thread Sivaraman P
21:01:22 UTC+5:30, Dick Visser wrote: > > On Thu, 20 Feb 2020 at 15:13, Sivaraman P > wrote: > > > > Thanks much for your reply, I think this is what the solution I need. > But there are two things which I am not able get. I am new to ansible, > kindly answer

[ansible-project] Creating variables from register variable in ansible

2020-02-21 Thread Sivaraman P
I have the register variable which contains number of lines in stdout_lines. With those lines I have to create variables. Is there any workaround for this. Ex: register: output output.stdout_line contains below lines variable1: value1; variable2: variable1 + value2; variable3: variable2

Re: [ansible-project] Ansible - Environment variable

2020-02-21 Thread Sivaraman P
Is there any other way to do this? On Sat, 22 Feb 2020, 11:46 Dick Visser, wrote: > Not really, this is what I meant with that the solution is fragile. > > > On Fri, 21 Feb 2020 at 11:02, Sivaraman P wrote: > >> Now I am able to set the environment using the playbook yo

Re: [ansible-project] Export environment variables

2020-02-20 Thread Sivaraman P
:03 AM, Sivaraman P wrote: > > I have the env file which is present in target machine and it contain > certain number of variables with export > > command(the export command itself was present inside the file). > > > > |export AB_HOME=/et/dev/abinitio/abinitio-V3 exp

[ansible-project] Re: How to source a file which contains environment variables in a linux

2020-02-20 Thread Sivaraman P
Gopi Krishna, Did you got any solution for this? Now I was in the same situation. On Wednesday, 21 February 2018 12:27:16 UTC+5:30, Gopi Krishna wrote: > > Hi All, > > - name: "source then env file" >shell: . /home/myfiles/setup.env > > I used . & source to source the env file, but its was

[ansible-project] Ansible - Environment variable

2020-02-20 Thread Sivaraman P
0I have the env file which is present in target machine and it contain certain number of variables with export command(the export command itself was present inside the file). export AB_HOME=/et/dev/abinitio/abinitio-V3 export PATH=${AB_HOME}/bin:${PATH} I have executed the env file using the

Re: [ansible-project] Export environment variables

2020-02-20 Thread Sivaraman P
I have the env file which is present in target machine and it contain certain number of variables with export command(the export command itself was present inside the file). export AB_HOME=/et/dev/abinitio/abinitio-V3 export PATH=${AB_HOME}/bin:${PATH} I have executed the env file using the

Re: [ansible-project] Ansible - Environment variable

2020-02-20 Thread Sivaraman P
encounter. > - Which command did you run, and what output did you get from that > (copied as text, not as images/attachments/screenshots) > - What the relevant tasks/playbooks/code/variables look like > > > > > On Thu, 20 Feb 2020 at 10:55, Sivaraman P > wrote:

Re: [ansible-project] Export environment variables

2020-02-20 Thread Sivaraman P
shell: "su & " #command to check status environment: "{{output1.stdout_lines}}" #setting the environment in which the above status command need to run register: output2 - debug: var=output2.stdout_lines On Thursday, 20 February

Re: [ansible-project] Register variable not capturing

2020-03-11 Thread Sivaraman P
& is present in the command to stop so I have used.. it is optional... and without & also I have used.. but still it is registering only the first line -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

[ansible-project] Register variable not capturing

2020-03-11 Thread Sivaraman P
Hi I have the below playbook to stop and start the service using the script present in the the target machine, tasks: - name : stop command: ./coconf.sh -stop & register: stop_details - debug: var=stop_details The actual output of stop details contains multiline as below Using

Re: [ansible-project] Latest version of Ansible

2020-04-08 Thread P. Varsha
Hello Rahul, please find the attachment link of porting guide and latest version of ansible. https://docs.ansible.com/ansible/latest/porting_guides/porting_guides.html https://docs.ansible.com/ansible/2.3/release_and_maintenance.html On Wed, Apr 8, 2020 at 11:49 AM Rahul Kumar wrote: > Hello

Re: [ansible-project] Latest version of Ansible

2020-04-08 Thread P. Varsha
AM P. Varsha wrote: > Hello Rahul, > > please find the attachment link of porting guide and latest version of > ansible. > > https://docs.ansible.com/ansible/latest/porting_guides/porting_guides.html > > https://docs.ansible.com/ansible/2.3/release_and_maintenance.html >

[ansible-project] Need help in formatting register variable

2020-05-04 Thread Sivaraman P
I have used the below play to display the files and folders with some pattern - name: Display backup files shell: "du -h {{partition}} --time | sort -rh | grep -o -P '(.*bk|.*bkup|.*bak|.*backup|.*logs' | sort -rh | awk -F'\t' '{print $3}'|uniq|head -n 100" register: status

Re: [ansible-project] Line in file

2020-05-11 Thread Sivaraman P
Thank you for your assistance. -- 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 view this discussion on the

[ansible-project] Line in file

2020-05-11 Thread Sivaraman P
Hi All, I am using Line in file nodule to write a list output in ansible to a file in the target machine. Below is the code i have used. hosts: localhost tasks: - lineinfile: create: yes regexp: "NONEXISTENTLINE" dest: /projects/testing/check.txt line : "{{item}}"

[ansible-project] Search upto first occurence of the pattern

2020-03-18 Thread Sivaraman P
I have the output of command as below /ps/was-ps/woa/woa_runtime/profiles /ps/was-ps/woa12/woa_runtime/profiles /pas/ec1/ukpl/woa_runtime/profiles >From this paths, I need to find the lines upto first occurence of woa or first >occuerence of woa*. Output needed: /ps/was-ps/woa/

[ansible-project] Display file content in body of mail module

2020-08-14 Thread Sivaraman P
Hi All, How to display the file contents in the body of the mail module. mail: body: /tmp/file2.txt -- 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] Display file content in body of mail module

2020-08-15 Thread Sivaraman P
Getting the same error. -- 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 view this discussion on the web

Re: [ansible-project] Display file content in body of mail module

2020-08-15 Thread Sivaraman P
I have used the below playbook and the lookup option getting failed - name:send mail mail: subtype: html to: xxx.gmail.com from: yyy.gmail.com subject: test email body: "{{lookup('file', '/tmp/{{today}}.html')}}" ignore_errors: true - shell: ls /tmp register: result

Re: [ansible-project] Display file content in body of mail module

2020-08-15 Thread Sivaraman P
The file is present in the target machine. whether lookup will not work there. -- 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

  1   2   3   4   5   >