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
Kai:
Thank you for your response.
On Wednesday, November 15, 2017 at 11:00:08 AM UTC-5, Kai Stian Olstad
wrote:
>
> On Wednesday, 15 November 2017 15.58.47 CET DigitalHermit wrote:
> > Hello all:
> >I've been Googling for a couple hours trying to find a way to pass
> tags
> > to a role
Hey Bibhu,
Have you tried using the line-in-file module to set that within your script
or setting it in your application server's conf file. From there you should
be able to restart your application or server and have the changes take
effect.
--
You received this message because you are subsc
you can use zabbix template module to manage templates, if you want to
automate everything then you should try to not use items without templates,
just add those items to templates, make as much templates you need, and
then link host to needed templates.
we have much templates, and we have crea
ansible --list-hosts behaviour is something strange, at least it works as i
don't expect, it differs from ansible 2.3 to ansible 2.4
test case:
created inventory
[group]
host1-c1
host2
[group1-c1]
host3
host4
[group2-c1]
host5
host6
host11-c1
2.3 ansible behaviour is to return all hosts and
Hi,
upgrade-ing to Ansible 2.4, I have noticed that variables defined in
'group_vars/all.yaml', 'group_vars/groupX.yaml' no longer appear in
'hostvars'. I'm talking about referencing hostvars of _another_ host from
currently executing one.
I have the following directory structure:
.
├── env
│
So far I came up with the following, but it does feel a bit kludgy:
- name: check if running inside AWS
uri:
url: http://169.254.169.254/latest/meta-data
timeout: 2
register: aws_uri_check
failed_when: False
- name: store result
set_fact:
inside_aws: "{{ aws_uri_check.status
Make sure you meet the requirements for Ansible as documented here
http://docs.ansible.com/ansible/devel/windows_setup.html#host-requirements. It
requires at least PowerShell v3 which is when the ConvertTo-Json cmdlet was
added.
--
You received this message because you are subscribed to the Go
This can still be done, you can set the ansible_become_password variable using
the vars argument like so;
- command: whoami
become: yes
become_user: user
vars:
ansible_become_password: password
The vars key can be used to set any variable for that particular task and it
can even inclu
Hi,
We're starting to move our setup to AWS. In order to get an EC2 instance
provisioned we use ansible in 'pull' mode. That works fine. The one thing
that seems to be a problem is getting the tags assigned to the instance.
If the playbook is ran from the 'outside' the inventory script supplies
Is there a way for dynamic inventory in vmware environmnet. Can we use the
tags of VMs to do dynamic invetory in ansible.
Any example would help. Thanks.
Meda.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group an
Thanks Kai for the clarification. It was useful.
On Wednesday, 15 November 2017 17:56:39 UTC+5:30, Kai Stian Olstad wrote:
>
> On 15.11.2017 11:39, arpan...@gmail.com wrote:
> > Is it mandatory to install PyVmomi on Esx to talk with ansible.
>
> Not on the ESX, in the documentation is says "Req
Hi ,
Impala-shell script is there under /usr/bin/ in 50 machines . I want
to replace or override PYTHON_EGG_CACHE=
/tmp/impala-shell-python-egg-cache-${USER} TO
PYTHON_EGG_CACHE=/var/tmp/impala-shell-python-egg-cache-${USER} using
Ansible . could you please suggest
Thanks and Regards
Bibh
Hi ,
impala-shell script is there under /usr/bin/ in 50 machine and I am trying
to change PYTHON_EGG_CACHE= /tmp/impala-shell-python-egg-cache-${USER} TO
PYTHON_EGG_CACHE=/var/tmp/impala-shell-python-egg-cache-${USER}. could you
please suggest what module I can use to replace or override the p
You CAN have modules (and other plugins) in the roles though.
--
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to ansible-project+unsub
Found it!
- name: Wait for service
wait_for:
path: /tmp/{{ item }}.log
search_regex: 'Docker is up and running'
timeout: 5
delegate_to: localhost
with_items: "{{ groups['manager'] }}"
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To uns
Well, when it fails after 300 seconds, it seems its unable to interpret
group['manager] to node-41 ..etc, still not sure why!
failed: [172.18.18.44 -> localhost] (item=groups['manager']) => {"changed":
false, "elapsed": 5, "failed": true, "item": "*groups['manager']*", "msg":
"Timeout when w
something like this should work:
- hosts: groupof10
tasks:
- mail: subject='less than 20% root'
when: (root.size_available / root.size_total) <= 0.20
vars:
root: "{{ansible_mounts|selectattr('mount', 'equalto', '/')|first}}"
--
--
Brian Coca
--
Yo
On Wednesday, 15 November 2017 15.58.47 CET DigitalHermit wrote:
> Hello all:
>I've been Googling for a couple hours trying to find a way to pass tags
> to a role from within a playbook.
That's not possible.
> I've tried:
>
> Inside my utility role main.yml:
>
> - name: "Task 1"
> inclu
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
Hey everyone
I'm trying this combination, can't figure out what I'm doing wrong,
When I try the following it works
- name: Wait for service
wait_for:
path: /tmp/node-41.log
search_regex: 'Docker is up and running'
delegate_to: localhost
However when I try and loop over hosts group, it hangs
On Wednesday, 15 November 2017 16.10.28 CET Jon Forrest wrote:
>
> Good idea. I checked this, and there certainly are more modules there.
In Galaxy you can download roles not modules.
--
Kai Stian Olstad
--
You received this message because you are subscribed to the Google Groups
"Ansible P
Le mercredi 15 novembre 2017 10:28:58 UTC-5, steve@urgences-sante.qc.ca
a écrit :
>
> Hi
>
> I try to get winrm up ans running. I have many servers (30) where is
> working but some not working (5)with this message
>
> fatal: [Servername]: FAILED! => {"changed": false, "failed": true,
On Wednesday, 15 November 2017 16.08.39 CET Andrei Baban wrote:
> thanks Kai for your answer!
>
> the issue with find module would be that it would work fine if there would
> be only one type of file with one replace in it. But I store in the
> variables file multiple type of files that each ha
Hi
I try to get winrm up ans running. I have many servers (30) where is
working but some not working (5)with this message
fatal: [Servername]: FAILED! => {"changed": false, "failed": true,
"module_stderr": "Le terme « ConvertFrom-Json » n'est pas reconnu comme nom
d'applet de commande,\r\
On Wednesday, 15 November 2017 16.01.10 CET stefano.bian...@nap-anywhere.com
wrote:
> i tried to install it on my centos control machine with: yum install -y
> pexpect
>
> i still have the error. Is it the right package?
I guess that's the correct package name, but is the version >=3.3, that's
On 11/14/2017 6:50 AM, Kai Stian Olstad wrote:
Have you check out the roles in Galaxy, maybe there are some more complete
solutions there
https://galaxy.ansible.com/list#/roles
Good idea. I checked this, and there certainly are more modules there.
But I was hoping to learn what people are act
thanks Kai for your answer!
the issue with find module would be that it would work fine if there would
be only one type of file with one replace in it. But I store in the
variables file multiple type of files that each have different patterns to
search for and replace. I would need in pseudoco
i tried to install it on my centos control machine with: yum install -y
pexpect
i still have the error. Is it the right package?
On Wednesday, 15 November 2017 15:07:58 UTC+1, stefano...@nap-anywhere.com
wrote:
>
> HI
>
> I created an ansble role which install on the target hosts IBM api conne
Hello all:
I've been Googling for a couple hours trying to find a way to pass tags
to a role from within a playbook. The goal is to build a utility role with
common tasks (mount a filesystem, add specific users, etc.). So far it's
not working.
I've tried:
Inside my utility role main.yml:
On Tuesday, 14 November 2017 17.16.15 CET Andrei Baban wrote:
> All works well, but I need to be able to specify files with regexp in the
> variables.yml file. Something like below:
>
> patterns:
> - file: file_*.xml
> regexp: 17701
> replace: 17706
> - file: other_file.xml
> rege
On Wednesday, 15 November 2017 15.07.58 CET stefano.bian...@nap-anywhere.com
wrote:
> $ telnet 0 2200 *//command to launch to access the CLI*
> Trying 0.0.0.0...
> Connected to 0.
> Escape character is '^]'.
> stefano2.prv
> Unauthorized access prohibited.
>
> login: user *//here i
On Wednesday, 15 November 2017 10.38.48 CET Dev wrote:
>
> Do you have any idea?
>
Sometimes the only solution is to use the shell or the command module.
--
Kai Stian Olstad
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe
On Wednesday, 15 November 2017 14.27.19 CET ZillaYT wrote:
> I've read the docs and it seems like all of them point me to coding the p/w
> either on the CLI or in group vars, but I want to do this
>
> ---
> - hosts: server
> gather_facts: no
>
> tasks:
> - name: Create a file in the server
HI
I created an ansble role which install on the target hosts IBM api connect
gateways software and enable the service.
I would improve this role adding configuration steps.
After the installation the APIC gateways need to be configured accessing to
a dedicated command line interface, the first
This is great information. Thank you for your help. I will read into the
links provided and see if I can work out a resolution with DSC.
On Tuesday, November 14, 2017 at 8:12:21 PM UTC-5, Jordan Borean wrote:
>
> The win_iis_* modules are fairly old and have a few bugs associated with
> them. I
You can't. Ansible just calls the appropriate uncompress application, in
this case, unzip. You can't do what you want in unzip, so Ansible can't do
it.
On Wednesday, November 15, 2017 at 4:38:48 AM UTC-5, Dev wrote:
>
> Hello everyone,
>
> How in easiest way can I unarchive .zip file, with neste
I've read the docs and it seems like all of them point me to coding the p/w
either on the CLI or in group vars, but I want to do this
---
- hosts: server
gather_facts: no
tasks:
- name: Create a file in the server /etc file system
file:
path: /etc/test.txt
state: touch
hello,
Forgive me in advance for my bad english.
I'm trying to use vmware_guest module with loops to create disks in the
created vm.
But I don't understand how to do this. The idea is to create a random
number of disk.
My code:
- name: "Creating a VM based on template"
vmware_guest:
data
On 15.11.2017 11:39, arpanmed...@gmail.com wrote:
Is it mandatory to install PyVmomi on Esx to talk with ansible.
Not on the ESX, in the documentation is says "Requirements (on host that
executes module)"
By that it means the control machine aka. the machine runnning
ansible/ansible-playboo
Is it mandatory to install PyVmomi on Esx to talk with ansible.
http://docs.ansible.com/ansible/latest/vmware_vmkernel_module.html#id2.
Not able to install get-pip or PyVmomi from EsxCLi.
=
/usr # python get-pip.py
Traceback (most recent call last):
File "get-pip.py", line 20061, in
Hello,
I'm trying to boot an instance from a cinder volume, on a specific
volume_type. I'm a little bit lost because :
- In *os_server*, you can specify *boot_from_volume* but there is no
*volume_type* parameter.
- In* os_server*, if I use *volume* parameter, the root disk is ephemeral,
cinder
42 matches
Mail list logo