Re: [ansible-project] Create user elasticsearch for filebeat using ansible playbook

2022-09-08 Thread Le Roy
I have found problem is not in Ansible but other Automation software I'm using that not allow me. Le mer. 7 sept. 2022 à 13:37, Dick Visser a écrit : > How would you do this without ansible? > > > On Wed, 7 Sep 2022 at 13:21, Roytman Piccoli > wrote: > >> Hi People! >> >> Some one have any Ide

[ansible-project] Chocolatey Checksums Mismatch in CI Procedures

2021-05-28 Thread Roy Keret
Hi guys, In my company, we're using the win_chocolatey module to install several Windows programs as part of the CI process. Every now and then, a Chocolatey package gets updated while the checksum does not, resulting in the checksums mismatch, the win_chocolatey failing and then failing our ent

Re: [ansible-project] template error: Encountered unknown tag 'Y'

2020-10-27 Thread Roy Lenferink
This was the exact problem. After substituting %{%Y with %{{'{%'}}Y it worked !! To still answer your first question; yes I am indeed using Jeff Geerling's Apache role. Many thanks for the help !! > > > On Tue, 27 Oct 2020 at 19:21, Roy Lenferink wrote: > >

Re: [ansible-project] template error: Encountered unknown tag 'Y'

2020-10-27 Thread Roy Lenferink
Op dinsdag 27 oktober 2020 om 19:36:31 UTC+1 schreef brae...@gmail.com: > On 10/27/20 8:21 PM, Roy Lenferink wrote: > > Hello everyone, > > > > I am having a problem with defining a string variable in Ansible > (v2.9.9) > > > > The string I want to def

[ansible-project] template error: Encountered unknown tag 'Y'

2020-10-27 Thread Roy Lenferink
e the specified string in Ansible ? I tried escaping several properties however wasn't able to find out a solution. Best regards, Roy -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group a

[ansible-project] need to check the difference of mtab, before and after server reboot, rhel 7 server

2020-07-11 Thread Shreela Roy
I want to run a yml via ansible tower. Purpose: to take backup of mtab before and after server reboot and compare the differences to let me know what was mounted before reboot/got mounted post reboot. Which module can help me to get what I need. -- You received this message because you are sub

Re: [ansible-project] BECOME password:

2019-11-18 Thread Roy Wright
all with expect to handle the BECOME password prompt. Thank you, Roy On Wednesday, November 13, 2019 at 1:02:51 PM UTC-6, Sam Doran wrote: > > Roy, > > Check the settings in /home/myuser/projects/test-ansible/ansible.cfg. > Always being prompted for the become password seems

[ansible-project] BECOME password:

2019-11-12 Thread Roy Wright
eral permutations of sudo when running ansible-playback, no joy. Thank you, Roy -- 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+un

[ansible-project] Re: The best practice of using Ansible to automatically config/deploy application on the vmware vm

2019-09-09 Thread Roy luo
Anyone any suggestions, looking forward to seeing... On Monday, September 9, 2019 at 3:43:59 PM UTC+8, Roy luo wrote: > > Hi Experts, > > I am a new to Ansible and working on the project of automating our > application environment management. The goal of the project is to > a

[ansible-project] The best practice of using Ansible to automatically config/deploy application on the vmware vm

2019-09-09 Thread Roy luo
new to Ansible, not sure if my idea is reasonable? Please advise, thank you so much in advance. Thanks and regards Roy -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails fro

[ansible-project] Check for a string value in a log file in a path and match and proceed accordingly using ansible find module

2018-04-02 Thread Shreela Roy
What I want to achieve here is check the log file: 12-2017PM-PATCH.log in /var/log and find for the word COMPLETED in it and return to me the output for each hosts in Inventory . What would be the syntax to put the search string in contains parameter and patterns parameter. Please please h

Re: [ansible-project] Set up a check for the patching logs in the nodes

2018-04-02 Thread Shreela Roy
ted find: paths: "/var/log" recurse: yes follow: True patterns: "*PATCH.*" #use_regex: True contains: "*COMPLETED*" register: success_patch_logs - name: print matches debug: msg: "{{ success_patch_

Re: [ansible-project] Set up a check for the patching logs in the nodes

2018-03-23 Thread Shreela Roy
Hi Kai/Team, Can you give me a small example of using file module for matching strings in the file? On Tuesday, 20 February 2018 23:24:39 UTC+5:30, Kai Stian Olstad wrote: > On Tuesday, 20 February 2018 18.38.06 CET Shreela Roy wrote: > > I am running an ansible playbook for pat

[ansible-project] Set up a check for the patching logs in the nodes

2018-02-20 Thread Shreela Roy
I am running an ansible playbook for patching the nodes from the control server. I want to set up a check which would check for the word COMPLETED in the file: something like: /var/log/12-2017PM-PATCH.log| grep -o COMPLETED But cannot find the way out for checking each of the nodes and then if

[ansible-project] Ansible root scenario

2018-01-08 Thread Aveek Roy
Hi All, We have an inquiry regarding ansible. Presently we have a server, where ansible is installed (say *A*) and we are running commands to a remote server (say *B*) using ansible, which tells that ansible is SSH authenticated. Below is the sequence of steps using which, we login to the serv

[ansible-project] Re: Can't connect to remote host

2017-07-02 Thread Rusty Roy
Don't know what the problem was, but restarting both local and remote machines seems to have fixed 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 ansibl

[ansible-project] Can't connect to remote host

2017-07-01 Thread Rusty Roy
I can connect to the remote host via ssh, but ansible fails to connect. I'm loading the key using ssh. If I run: ansible vm-to-deploy-to -m ping -e "ansible_ssh_port=15674" -e "ansible_ssh_user=djeyewater" Result is: 192.168.127.28 | UNREACHABLE! => { "changed": false, "msg": "Authentic

[ansible-project] Ansible won't create dir when file exists with same name

2017-06-19 Thread Rusty Roy
I have the following task: - name: create tmp dir to copy db sql to file: path=/tmp/sql state=directory When I run it, I get the error: TASK [mysql-data : create tmp dir to copy db sql to] *** fatal: [default]: FAILED! => {"changed": false, "failed": true, "gid": 0, "gr

[ansible-project] Sending userdata via config_drive doesn't seem to upload the userdata.

2017-04-17 Thread 'Roy Hoerauf' via Ansible Project
vnf_auth }}, state=present, flavor={{ ssc_low_flavor_name }}, security_groups={{ security_group_ID }}, config_drive=True] *** changed: [172.24.12.21] = This shows a positive result, but the instance doesn't seem to get the userdata. And I don't see anything in the variou

[ansible-project] iptables - Extrapositioned exclamation point

2016-06-23 Thread Pat Roy
Is there a way in Ansible / the iptables module to do something like this? iptables -A OUTPUT ! -d 1.1.1.1 -j ACCEPT Note the ! is before the -d option. This documentation https://docs.ansible.com/ansible/iptables_module.html says to put it just before the ip but iptables since changed how th

[ansible-project] Using module vs copying conf file

2016-06-09 Thread Pat Roy
I'm using the sysctl module to add a bunch of parameters to the /etc/sysctl.conf but should I just keep a local copy of my updated sysctl.conf file and upload it? It does take longer to run one sysctl command at a time with ansible vs copying the file. How do you guys do it? I guess using the m

Re: [ansible-project] How to do Ansible conditional include_vars?

2016-03-23 Thread Roy
Thanks Brian, It got working after fixing the host group -- 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 pos

Re: [ansible-project] How to do Ansible conditional include_vars?

2016-03-23 Thread Roy
Hi Brian, thanks for your reply. I tried your both suggestion now getting another error for *when: "'hadoop-namenode' in group_names"* TASK [hadoop-master : include_vars] fatal: [hnn001.dev.abc.com]: FAILED! => {"failed": true, "msg": "The conditi

[ansible-project] How to do Ansible conditional include_vars?

2016-03-22 Thread Roy
Hi, I am trying to use include_vars based on when condition as follows: - include_vars: clouderamanager.yml when: "'{{ inventory_hostname }}' in groups['hadoop-clouderamanager']" - include_vars: hadoop-namenode.yml when: "'{{ inventory_hostname }}' in groups['hadoop-namenode']" - include_v

[ansible-project] create a dir for user if its in group

2016-03-11 Thread Roy
Hi, I was trying following task, to create a user if user is a part on *hdfsuser* group - name: create user tmp dir /srv/tmp/$USER on gateway file: path=/srv/tmp/{{ item.name }} owner={{ item.name }} group={{ item.name }} mode=0755 state=directory when: "'hdfsuser' in {{ item.groups }}"

[ansible-project] Re: activate all ec2 instance store (ephemeral drive)

2016-02-17 Thread Roy
This doesn't happen automatically. >From what I know is, we need to explicitly tell to activate all instance stores (ephemeral drive) available for the instance. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this gro

[ansible-project] activate all ec2 instance store (ephemeral drive)

2016-02-12 Thread Roy
Hi, I am trying to automate ec2 instance launch launch and mount available all instance store for any instance. ec2_module does have volume option which is more specific to type of instance. I didn't find any way to tell ansible to activat

[ansible-project] Re: Help with setting ephemeral volume on EC2

2016-02-11 Thread Roy
What type of instance you are using, because not all instances comes with ephemeral -- 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.

[ansible-project] How to mount all ephemeral ?

2016-02-11 Thread Roy
Hi, I was creating a playbook to spin up an EC2 instance and then mount all available ephemeral mount to /mnt/ephemeral0, /mnt/ephemeral1 ... etc. First thing I want to do it activate all available ephemeral drive on specific instance in the playbook Then mount all drive to specific mount po

Re: [ansible-project] loop over host group to create string

2015-11-11 Thread Roy
> > Thanks following works for me. zookeeper.connect={% for node in groups['eventstore-zookeeper-' ] %}{{ node }}:2181{% if not loop.last %},{% endif %}{% endfor %} -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

[ansible-project] loop over host group to create string

2015-11-05 Thread Roy
I have following host group [zookeeper] zk001.abc.cc zookeeper_myid=1 zk002.abc.cc zookeeper_myid=2 zk003.abc.cc zookeeper_myid=3 I want following to be created when playbook run zookeeper.connect=zk001.abc.cc: 2181,zk002.abc.cc: 2181,zk003.abc.cc:2181 I tried following in a template which

[ansible-project] dynamic inventory with host files

2015-09-28 Thread Roy
Hi, We have a use case in which I want to run playbook on specific set of machines and same task on spot instances which belongs to same set of machines but we dont have entry into host file. We have cluster of machines (on demand) and some spot instances. I want to deploy code to all these

Re: [ansible-project] how to install pip2.7 packages with ansible.

2015-09-28 Thread Roy
thanks On Wednesday, September 23, 2015 at 1:43:41 PM UTC-4, Brian Coca wrote: > > use the executable option of the module to specify the pip2.7 over the > default pip. > > On Wed, Sep 23, 2015 at 1:40 PM, Roy > > wrote: > > Hi, > > > >We have C

[ansible-project] how to install pip2.7 packages with ansible.

2015-09-23 Thread Roy
Hi, We have Centos 6.5 with python2.6 as default and python2.7 also on it. So how do we install python packages for pip2.7 ? There is no module name pip2.7 in ansible. any help here ? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

[ansible-project] Update hosts file with host in group

2015-08-07 Thread Roy
Hi, I want to create host file with following requirements My inventory file [hadoop:children] hadoop-master hadoop-slave hadoop-gateway [hadoop-master] hnn001.test.abc.com hnn002.test.abc.com [hadoop-slave] hdp001.test.abc.com hdp002.test.abc.com hdp003.test.abc.com hdp004.test.abc.com hd

[ansible-project] run two command in one task

2015-07-13 Thread Roy
Hi, I was trying to write simple task in ansible to create HDFS user hone directory if it's not exist. So following is the task I wrote - name: create user home dir in HDFS shell: shell: "hadoop fs -test -d /user/{{ item.name }} || (hadoop fs -mkdir /user/{{ item.name }} && hadoop fs -cho

[ansible-project] replace module help

2015-04-08 Thread Roy
Hi I am new to Ansible and writing my first playbook I want to update /etc/fstab UUID=f2550ab4-36cb-4ff0-8afa-9e7839f7ce9f / ext4defaults1 1 UUID=988c830a-6d78-49f9-9db3-e8617f6dd8d0 /boot ext4defaults1 2 UUID=

[ansible-project] Which python?

2015-01-25 Thread Roy Smith
I notice that all the ansible .py files with shebang lines run /usr/bin/python, except for one, which picks up whatever python is on your $PATH: ./utils/module_docs.py:#!/usr/bin/env python Is this intentional? -- Roy Smith r...@panix.com -- You received this message because you are

[ansible-project] lookup using computed path?

2015-01-04 Thread Roy Smith
authorized ssh keys sudo: yes authorized_key: user=xxx key="{{ ssh_key }}" This works, but it seems needlessly complicated. Is there some way to avoid having to generate the temporary path and ssh_key variables? -- Roy Smith r...@panix.com -- You received this message bec

[ansible-project] Setting python virtualenv prompt?

2014-12-28 Thread Roy Smith
I've got the pip module working to set up my virtualenv: tasks: - name: create virtualenv and install third-party packages pip: chdir="{{ remote_base_dir }}/deploy" virtualenv=python-env executable="{{ remote_base_dir }}/deploy/python-env/bin/pip" requirements={{

[ansible-project] Re: pip tries to install to /usr/local/ not to my virtualenv

2014-12-21 Thread Roy Smith
irtualenv to install into, it doesn't, well, install into that. Along the way to this solution, I tried the approach of two distinct pip plays, one to create the basic virtualenv, and the other to populate it with modules. But this does the right thing in one play. On Dec 21, 201

[ansible-project] pip tries to install to /usr/local/ not to my virtualenv

2014-12-21 Thread Roy Smith
l into the global environment, resulting in errors like: error: could not create '/usr/local/lib/python2.7/dist-packages/django': Permission denied It appears that the virtualenv doesn't get activated before pip starts to run. What am I doing wrong? -- Roy Smith r...@panix.com

[ansible-project] root of hg tree?

2014-12-20 Thread Roy Smith
I want to set a playbook variable to the root of my hg tree, i.e. capture the output of the "hg root" command run on my local host. How do I do that? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop re

Re: [ansible-project] sudo not working

2014-12-15 Thread Roy Smith
I've tracked down what was causing this, and opened a bug on it. https://github.com/ansible/ansible/issues/9813 On Dec 14, 2014, at 4:26 PM, Roy Smith wrote: > I'm running ansible 1.8.2. My local machine is running OSX 10.7.5. The > remote machine I'm trying to man

[ansible-project] sudo not working

2014-12-15 Thread Roy Smith
I'm running ansible 1.8.2. My local machine is running OSX 10.7.5. The remote machine I'm trying to manage is running Ubuntu 14.04. I have one host in my inventory file. My playbook is: --- - hosts: all remote_user: roy tasks: - name: create users sudo: yes user